当前位置: 首页>>代码示例>>Python>>正文


Python Equipment.__init__方法代码示例

本文整理汇总了Python中HardwareRepository.BaseHardwareObjects.Equipment.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Equipment.__init__方法的具体用法?Python Equipment.__init__怎么用?Python Equipment.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HardwareRepository.BaseHardwareObjects.Equipment的用法示例。


在下文中一共展示了Equipment.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        Equipment.__init__(self, *args)

        self.current = self.default_current
        self.lifetime = self.default_lifetime
        self.message = self.default_message
        self.topup_remaining = self.default_topup_remaining
开发者ID:IvarsKarpics,项目名称:HardwareObjects,代码行数:9,代码来源:MachInfoMockup.py

示例2: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        Equipment.__init__(self, *args)

        self.phiMotor = None
        self.phizMotor = None
        self.phiyMotor = None
        self.lightMotor = None
        self.zoomMotor = None
        self.sampleXMotor = None
        self.sampleYMotor = None
        self.camera = None
        self.sampleChanger = None
        self.lightWago = None
        self.currentSampleInfo = None
        self.aperture = None
      
        self.pixelsPerMmY=None
        self.pixelsPerMmZ=None
        self.imgWidth = None
        self.imgHeight = None
        self.centredTime = 0
        self.user_confirms_centring = True

        self.connect(self, 'equipmentReady', self.equipmentReady)
        self.connect(self, 'equipmentNotReady', self.equipmentNotReady)     
开发者ID:meguiraun,项目名称:mxcube-v3-MaxIV-Flask,代码行数:27,代码来源:MiniDiff.py

示例3: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, name):
        """
        Descript. :
        """
        Equipment.__init__(self, name)
        self.can_scan = None
        self.ready_event = None
        self.scanning = False
        self.energy_motor = None
        self.archive_prefix = None
        self._element = None
        self._edge = None
        self.thEdge = None
        self.previousResolution = None
        self.lastResolution = None
        self.scanData = None
        
        self.energy2WavelengthConstant = None
        self.defaultWavelength = None
        self.thEdgeThreshold = None     

        self.energy_hwobj = None
        self.db_connection_hwobj = None
        self.transmission_hwob = None
        self.beam_info_hwobj = None

        self.chan_scan_start = None
        self.chan_scan_status = None
        self.cmd_scan_abort = None
开发者ID:hellmig,项目名称:HardwareObjects,代码行数:31,代码来源:EMBLEnergyScan.py

示例4: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, name):
        """
        Descript. :
        """
        Equipment.__init__(self, name) 

        # Attributes which should be set by GUI
        # ---------------------------------------------------------------------------
        # _paramSlit[0][0]: slit 1 - distance horizontal
        # _paramSlit[0][1]: slit 1 - distance vertical
        # _paramSlit[0][2]: slit 1 - step
        self._paramSlit = [[None, None, None], [None, None, None], [None, None, None]]

        # If should center each slit
        # _centerSlit[0]: optical hutch
        # _centerSlit[1]: slit 1
        # _centerSlit[2]: slit 2
        self._centerSlit = [False, False, False]

        # If should scan all the path allowed by each motor axis
        # _fullPathSlit[0]: optical hutch
        # _fullPathSlit[1]: slit 1
        # _fullPathSlit[2]: slit 2
        self._fullPathSlit = [False, False, False]

        # If should use centroid (default)
        # _centroidSlit[0]: optical hutch
        # _centroidSlit[1]: slit 1
        # _centroidSlit[2]: slit 2
        self._centroidSlit = [True, True, True]
开发者ID:douglasbeniz,项目名称:HardwareObjects,代码行数:32,代码来源:LNLSBeamCentering.py

示例5: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, name): 
        """
        Descript. :
        """ 
        Equipment.__init__(self, name)

        self.temperature = 23
        self.humidity = 50
        self.tolerance = 0.1
        self.detector_mode = 0
        self.detector_modes_dict = None
        self.detector_collect_name = None
        self.detector_shutter_name = None
        self.temp_treshold = None
        self.hum_treshold = None   
        self.exp_time_limits = None

        self.wait_threshold = 40        # time to wait for camServer to set Pilatus Threshold
        self.starting_camserver = False

        self.distance_motor_hwobj = None

        self.chan_temperature = None
        self.chan_humidity = None
        self.chan_status = None
        self.chan_detector_mode = None
        self.chan_frame_rate = None

        self.ssh_det = None
        self.ssh_usermx2 = None
开发者ID:douglasbeniz,项目名称:HardwareObjects,代码行数:32,代码来源:LNLSDetector.py

示例6: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        """
        Descript. :
        """
        Equipment.__init__(self, *args)

        queue_model_objects.CentredPosition.set_diffractometer_motor_names(\
                "phi", "focus", "phiz", "phiy", "zoom",
                "sampx", "sampy", "kappa", "kappa_phi")


        self.phiMotor = None
        self.phizMotor = None
        self.phiyMotor = None
        self.lightMotor = None
        self.zoomMotor = None
        self.sampleXMotor = None
        self.sampleYMotor = None
        self.camera_hwobj = None
        self.beam_info_hwobj = None

        self.beam_position = None
        self.x_calib = None
        self.y_calib = None
        self.pixels_per_mm_x = None
        self.pixels_per_mm_y = None
        self.image_width = None
        self.image_height = None
        self.current_sample_info = None
        self.cancel_centring_methods = None
        self.current_centring_procedure = None
        self.current_centring_method = None
        self.current_positions_dict = None
        self.current_phase = None
        self.centring_methods = None
        self.centring_status = {"valid":None,"startTime":None,"endTime":None,"motors":None,"accepted":None,"method":None,"images":None}
        self.centring_time = None
        self.user_confirms_centring = None
        self.user_clicked_event = None
        self.phase_list = None
        self.head_type = None
        self._drawing = None
        self.use_sc = False
        self.transfer_mode = None


        self.connect(self, 'equipmentReady', self.equipmentReady)
        self.connect(self, 'equipmentNotReady', self.equipmentNotReady)

        self.startCentringMethod = self.start_centring_method
        self.cancelCentringMethod = self.cancel_centring_method
        self.imageClicked = self.image_clicked
        self.acceptCentring = self.accept_centring
        self.rejectCentring = self.reject_centring
        self.getCentringStatus = self.get_centring_status
        self.takeSnapshots = self.take_snapshots
        self.moveMotors = self.move_motors
        self.start3ClickCentring = self.start_3Click_centring
        self.startAutoCentring = self.start_automatic_centring
开发者ID:marcus-oscarsson,项目名称:HardwareObjects,代码行数:61,代码来源:DiffractometerMockup.py

示例7: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        Equipment.__init__(self, *args)

        self.beam_size_slits = [9999, 9999]
        self.beam_size_aperture = [9999, 9999]
        self.beam_size_definer = [9999, 9999]
        self.beam_position = [300, 300]
        self.beam_info_dict = {}
开发者ID:jan-meyer,项目名称:HardwareObjects,代码行数:10,代码来源:BeamInfoMockup.py

示例8: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        Equipment.__init__(self, *args)

        self.beam_size_slits = [9999, 9999]
        self.beam_size_aperture = [0.01, 0.01]
        self.beam_size_definer = [9999, 9999]
        self.beam_crystal_position = [0, 0]         # see XML
        self.beam_det_position = [0, 0]             # see XML
        self.beam_info_dict = {}
开发者ID:douglasbeniz,项目名称:HardwareObjects,代码行数:11,代码来源:LNLSBeamInfo.py

示例9: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        """
        Descript. :
        """
        Equipment.__init__(self, *args)

        qmo.CentredPosition.set_diffractometer_motor_names("phi",
                                                           "focus",
                                                           "phiz",
                                                           "phiy",
                                                           "zoom",
                                                           "sampx",
                                                           "sampy",
                                                           "kappa",
                                                           "kappa_phi")

        self.phiMotor = None
        self.phizMotor = None
        self.phiyMotor = None
        self.lightMotor = None
        self.zoomMotor = None
        self.sampleXMotor = None
        self.sampleYMotor = None
        self.camera = None
        self.beam_info_hwobj = None

        self.beam_position = None
        self.x_calib = None
        self.y_calib = None
        self.pixels_per_mm_x = None
        self.pixels_per_mm_y = None
        self.image_width = None
        self.image_height = None
        self.current_sample_info = None
        self.cancel_centring_methods = None
        self.current_centring_procedure = None
        self.current_centring_method = None
        self.current_positions_dict = None
        self.centring_methods = None
        self.centring_status = None
        self.centring_time = None
        self.user_confirms_centring = None
        self.user_clicked_event = None
        self.phase_list = None

        self.connect(self, 'equipmentReady', self.equipmentReady)
        self.connect(self, 'equipmentNotReady', self.equipmentNotReady)

        #IK - this will be sorted out
        self.startCentringMethod = self.start_centring_method
        self.cancelCentringMethod = self.cancel_centring_method
        self.imageClicked = self.image_clicked
        self.acceptCentring = self.accept_centring
        self.rejectCentring = self.reject_centring
        self.getCentringStatus = self.get_centring_status
        self.takeSnapshots = self.take_snapshots
        self.moveMotors = self.move_motors
开发者ID:folf,项目名称:mxcube,代码行数:59,代码来源:Qt4_DiffractometerMockup.py

示例10: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        Equipment.__init__(self, *args)
        default_current = 0
        default_lifetime = 0
        default_message = ""
        default_topup_remaining = 0
        self.current = self.default_current
        self.lifetime = self.default_lifetime
        self.message = self.default_message

        self.mach_info_channel = None
        self.mach_curr_channel = None
开发者ID:IvarsKarpics,项目名称:HardwareRepository,代码行数:14,代码来源:MachInfo.py

示例11: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        Equipment.__init__(self, *args)

        self.beam_size_slits = [9999, 9999]
        self.beam_size_aperture = [9999, 9999]
        self.beam_size_definer = [9999, 9999]
        self.beam_position = [0, 0]

        self.aperture_HO = None
        self.slits_HO = None
        self.beam_definer_HO = None
        self.beam_info_dict = {}
开发者ID:vrey01,项目名称:HardwareRepository,代码行数:14,代码来源:ID231BeamInfo.py

示例12: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, name):
        """
        Descript. :
        """
        Equipment.__init__(self, name) 
        self.active_focus_mode = None
        self.size = [9999, 9999]
        self.focus_modes = None
        self.focus_motors_dict = None
        self.motors_groups = []

        self.cmd_set_calibration_name = None
        self.cmd_set_phase = None 
开发者ID:jan-meyer,项目名称:HardwareObjects,代码行数:15,代码来源:EMBLBeamFocusing.py

示例13: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args, **kwargs):
        Equipment.__init__(self, *args, **kwargs)

        self._state = None
        self._running = None
        self._powered = None
        self._toolopen = None
        self._message = None
        self._regulating = None
        self._lid1state = None
        self._lid2state = None
        self._lid3state = None
        self._charging = None
开发者ID:IvarsKarpics,项目名称:HardwareRepository,代码行数:15,代码来源:CatsMaint.py

示例14: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args, **kwargs):
        Equipment.__init__(self, *args, **kwargs)

        self._state = "READY"
        self._running = 0
        self._powered = 0
        self._toolopen = 0
        self._message = "Nothing to report"
        self._regulating = 0
        self._lid1state = 0
        self._lid2state = 0
        self._lid3state = 0
        self._charging = 0
        self._currenttool = 1
开发者ID:IvarsKarpics,项目名称:HardwareRepository,代码行数:16,代码来源:CatsMaintMockup.py

示例15: __init__

# 需要导入模块: from HardwareRepository.BaseHardwareObjects import Equipment [as 别名]
# 或者: from HardwareRepository.BaseHardwareObjects.Equipment import __init__ [as 别名]
    def __init__(self, *args):
        """
        Decript. :
        """
	Equipment.__init__(self, *args)
        self.decimal_places = None
        self.active_focus_mode = None       
        self.beam_focus_hwobj = None  
        self.gaps_dict = None
        self.motors_dict = None
        self.init_max_gaps = None
        self.motors_groups = None
        self.hor_gap = False
        self.ver_gap = False
开发者ID:hzb-mx,项目名称:HardwareObjects,代码行数:16,代码来源:EMBLSlitBox.py


注:本文中的HardwareRepository.BaseHardwareObjects.Equipment.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。