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)
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]
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
def __init__(self, *args): 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.sampleChanger = None self.lightWago = None self.currentSampleInfo = None self.aperture = None self.beam_info = None self.pixelsPerMmY = None self.pixelsPerMmZ = None self.imgWidth = None self.imgHeight = None self.centredTime = 0 self.user_confirms_centring = True self.do_centring = True self.connect(self, 'equipmentReady', self.equipmentReady) self.connect(self, 'equipmentNotReady', self.equipmentNotReady)
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)
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
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
def __init__(self, *args): Equipment.__init__(self, *args) self.beam_position = [328, 220] # [None, None] self.beam_size = [0.010, 0.005] # [None, None] self.shape = "rectangular" self.beam_info_dict = { "size_x": None, "size_y": None, "shape": self.shape } self.beam_info_dict["size_x"] = 0.010 self.beam_info_dict["size_y"] = 0.005 self.beam_info_dict["shape"] = "ellipse" # Channels self.chanBeamSizeX = None self.chanBeamSizeY = None self.chanBeamPosX = None self.chanBeamPosY = None # Zoom motor self.zoomMotor = None # self.minidiff = None self.positionTable = {}
def __init__(self, *args): Equipment.__init__(self, *args) self.beam_position = [None, None] # [329, 246] #[None, None] self.beam_size = [None, None] #[0.010, 0.005] #[None, None] self.shape = 'rectangular' self.beam_info_dict = { 'size_x': None, 'size_y': None, 'shape': self.shape } self.beam_info_dict['size_x'] = 0.010 self.beam_info_dict['size_y'] = 0.005 self.beam_info_dict["shape"] = "ellipse" # Channels self.chanBeamSizeX = None self.chanBeamSizeY = None self.chanBeamPosX = None self.chanBeamPosY = None # Zoom motor self.zoomMotor = None #self.minidiff = None self.positionTable = {}
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
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 = [318, 238] self.beam_info_dict = {}
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 = {}
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
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 = {}
def __init__(self, name): 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
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_info_dict = {}
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
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 = {}
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
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
def __init__(self, *args): 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
def __init__(self, *args): self.current_detdist = None self.current_wavelength = None self.current_table_x = None self.current_table_z = None Equipment.__init__(self, *args) # Channels self.detdist_chan = None self.wavelength_chan = None self.table_x_chan = None self.table_z_chan = None
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
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
def __init__(self, name): Equipment.__init__(self, name) """ Descript. : """ #Parameters values self.values_dict = {} self.values_dict['mach_current'] = None self.values_dict['mach_status'] = "" self.values_dict['topup_remaining'] = "" #Dictionary for booleans indicating if values are in range # self.values_in_range_dict = {} self.chan_mach_current = None self.chan_mach_status = None self.chan_topup_remaining = None
def __init__(self, name): AbstractEnergyScan.__init__(self) Equipment.__init__(self, name) self.scanning = False self.stopping = False self.ready_event = None self.e_edge = "" self.scan_info = {} self.scan_data = [] self.log = logging.getLogger("HWR")
def __init__(self, name): """ Descript. : """ Equipment.__init__(self, name) self.detector_mode = 0 self.detector_modes_dict = None self.exp_time_limits = None self.distance_motor_hwobj = None self.chan_status = None self.chan_detector_mode = None self.chan_frame_rate = None
def __init__(self, *args): """ Descrip. : """ Equipment.__init__(self, *args) self.aperture_hwobj = None self.slits_hwobj = None self.beam_size_slits = None self.beam_size_aperture = None self.beam_size_definer = None self.beam_position = None self.beam_info_dict = None self.default_beam_divergence = None
def __init__(self, name): Equipment.__init__(self, name) """ Descript. : """ # Parameters values self.values_dict = {} self.values_dict["mach_current"] = None self.values_dict["mach_status"] = "" self.values_dict["topup_remaining"] = "" # Dictionary for booleans indicating if values are in range # self.values_in_range_dict = {} self.chan_mach_current = None self.chan_mach_status = None self.chan_topup_remaining = None
def __init__(self,type,scannable, *args, **kwargs): super(SampleChanger, self).__init__(type,None,type,scannable) if len(args)==0: args=(type,) Equipment.__init__(self,*args, **kwargs) self.state=-1 self.status="" self._setState(SampleChangerState.Unknown) self.task=None self.task_proc=None self.task_error=None self._transient=False self._token=None self._timer_update_inverval = 5 # defines the interval in periods of 100 ms self._timer_update_counter = 0
def __init__(self, type, scannable, *args, **kwargs): super(SampleChanger, self).__init__(type, None, type, scannable) if len(args) == 0: args = (type, ) Equipment.__init__(self, *args, **kwargs) self.state = -1 self.status = "" self._set_state(SampleChangerState.Unknown) self.task = None self.task_proc = None self.task_error = None self._transient = False self._token = None self._timer_update_inverval = 5 # interval in periods of 100 ms self._timer_update_counter = 0
def __init__(self, *args): Equipment.__init__(self, *args) self.beam_position = [None, None] self.beam_size = [100, 100] self.shape = "rectangular" self.beam_size_slits = [9999, 9999] self.beam_info_dict = {} self.beam_info_dict["size_x"] = self.beam_size[0] self.beam_info_dict["size_y"] = self.beam_size[1] self.beam_info_dict["shape"] = self.shape # Zoom motor self.zoomMotor = None
def __init__(self, *args): """ Descrip. : """ Equipment.__init__(self, *args) self.aperture_hwobj = None self.slits_hwobj = None self.beam_definer_hwobj = None self.beam_size_slits = None self.beam_size_aperture = None self.beam_size_definer = None self.beam_position = None self.beam_info_dict = None self.default_beam_divergence = None
def __init__(self, *args): Equipment.__init__(self, *args) self.beam_position = [None, None] self.beam_size = [100, 100] self.shape = 'rectangular' self.beam_size_slits = [9999, 9999] self.beam_info_dict = {} self.beam_info_dict['size_x'] = self.beam_size[0] self.beam_info_dict['size_y'] = self.beam_size[1] self.beam_info_dict['shape'] = self.shape # Zoom motor self.zoomMotor = None
def __init__(self, name): Equipment.__init__(self, name) self.logger = logging.getLogger("HWR MachineInfo") self.logger.info("__init__()") """ Descript. : """ # Parameters values self.values_dict = {} self.values_dict["mach_current"] = None self.values_dict["mach_status"] = "" self.values_dict["topup_remaining"] = "" # Dictionary for booleans indicating if values are in range # self.values_in_range_dict = {} self.chan_mach_current = None self.chan_mach_status = None self.chan_topup_remaining = None
def __init__(self,type,scannable, *args, **kwargs): super(SampleChanger, self).__init__(type,None,type,scannable) if len(args)==0: args=(type,) Equipment.__init__(self,*args, **kwargs) self.state=-1 self.status="" self._setState(SampleChangerState.Unknown) self.task=None self.task_proc=None self.task_error=None self._transient=False self._token=None task=self.__timer_task(wait=False) task.link(self._onTimerExit) self._timer_update_inverval = 2 self._timer_update_counter = 0
def __init__(self, type, scannable, *args, **kwargs): super(SampleChanger, self).__init__(type, None, type, scannable) if len(args) == 0: args = (type, ) Equipment.__init__(self, *args, **kwargs) self.state = -1 self.status = "" self._setState(SampleChangerState.Unknown) self.task = None self.task_proc = None self.task_error = None self._transient = False self._token = None task = self.__timer_task(wait=False) task.link(self._onTimerExit) self._timer_update_inverval = 2 self._timer_update_counter = 0
def __init__(self, *args): Equipment.__init__(self, *args) self.oldpos = {} self.oldpos['samplex'] = 0 self.oldpos['sampley'] = 0 queue_model_objects.CentredPosition.set_diffractometer_motor_names("phi", "focus", "phiz", "phiy", "zoom", "sampx", "sampy") 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.guillotine = None self.sampleChanger = None self.lightWago = None self.currentSampleInfo = None self.aperture = None #============================================================================== # new QT4 attributes #============================================================================== self.grid_direction = None self.pixelsPerMmY=None self.pixelsPerMmZ=None self.imgWidth = None self.imgHeight = None self.centredTime = 0 self.user_confirms_centring = True self.centring_motors_list = None self.connect(self, 'equipmentReady', self.equipmentReady) self.connect(self, 'equipmentNotReady', self.equipmentNotReady)
def __init__(self, *args): """ Decript. : """ Equipment.__init__(self, *args) self.decimal_places = None self.active_focus_mode = None self.gaps_dict = None self.motors_dict = None self.init_max_gaps = None self.hor_gap = False self.ver_gap = False # HardwareObjects related to the slit self.beam_focus_hwobj = None self.slit_gap_hor_hwobj = None self.slit_gap_ver_hwobj = None
def __init__(self, name): Equipment.__init__(self, name) self.logger = logging.getLogger("HWR MachineInfo") self.logger.info("__init__()") """ Descript. : """ #Parameters values self.values_dict = {} self.values_dict['mach_current'] = None self.values_dict['mach_status'] = "" self.values_dict['topup_remaining'] = "" #Dictionary for booleans indicating if values are in range # self.values_in_range_dict = {} self.chan_mach_current = None self.chan_mach_status = None self.chan_topup_remaining = None
def __init__(self, name): """ Descript. : """ Equipment.__init__(self, name) self.can_scan = None self.ready_event = None self.scanning = None self.spectrum_info = None self.energy_hwobj = None self.transmission_hwobj = None self.db_connection_hwobj = None self.beam_info_hwobj = None self.cmd_scan_start = None self.chan_scan_status = None self.chan_scan_consts = None
def __init__(self, *args): """ Descrip. : """ Equipment.__init__(self, *args) self.device = None self.file_suffix = None self.default_exposure_time = None self.default_compression = None self.buffer_limit = None self.dcu = None self.config_state = None self.initialized = False self.status_chan = None # defaults self.energy_change_threshold_default = 20
def __init__(self, *args): Equipment.__init__(self, *args) self.beam_position = [None, None] self.beam_size = [None, None] self.shape = 'rectangular' self.beam_info_dict = {'size_x': None, 'size_y': None, 'shape': self.shape} # Channels self.chanBeamSizeX = None self.chanBeamSizeY = None self.chanBeamPosX = None self.chanBeamPosY = None # Zoom motor self.zoomMotor = None self.positionTable = {}
def __init__(self, type, scannable, *args, **kwargs): super(SampleChanger, self).__init__(type, None, type, scannable) if len(args) == 0: args = (type, ) Equipment.__init__(self, *args, **kwargs) self.state = -1 self.status = "" self._setState(SampleChangerState.Unknown) self.task = None self.task_proc = None self.task_error = None self._transient = False self._token = None self._timer_update_inverval = 5 # defines the interval in periods of 100 ms self._timer_update_counter = 0 task1s = self.__timer_1s_task(wait=False) task1s.link(self._onTimer1sExit) updateTask = self.__update_timer_task(wait=False) updateTask.link(self._onTimerUpdateExit)
def __init__(self, *args, **kwargs): Equipment.__init__(self, *args, **kwargs) self.__timers = {} self.currentSample = None self.currentBasket = None self.currentSampleDataMatrix = None self.currentBasketDataMatrix = None self.scanAllBasketsProcedure = None self.scanCurrentBasketProcedure = None self.loadSampleProcedure = None self.unloadSampleProcedure = None self.failureCallback = None self.moveToPositionRetries = [] self.stopScanAllBasketsFlag = None self.specConnection = None self.isSpecConnected = None self.lastOperationalFlags = SampleChanger.FLAG_SC_NEVER self.loadedSampleDict={} self.scannedMatrices=None