本文整理汇总了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
示例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)
示例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
示例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]
示例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
示例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
示例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 = {}
示例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 = {}
示例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
示例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
示例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 = {}
示例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
示例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
示例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
示例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