Exemple #1
0
    def __init__(self, name):
        """

        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)

        self._error_msg = ""
        self.owner = None
        self.osc_id = None
        self._collecting = None

        self.diffractometer_hwobj = None
        self.omega_hwobj = None
        self.kappa_hwobj = None
        self.phi_hwobj = None
        self.lims_client_hwobj = None
        self.machine_info_hwobj = None
        self.energy_hwobj = None
        self.resolution_hwobj = None
        self.transmission_hwobj = None
        self.detector_hwobj = None
        self.beam_info_hwobj = None
        self.autoprocessing_hwobj = None
        self.graphics_manager_hwobj = None
        self.mxlocal = None

        self.helical_positions = None
    def __init__(self, name):
        """

        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)

        self._error_msg = ""
        self.owner = None
        self.osc_id = None
        self._collecting = None

        self.diffractometer_hwobj = None
        self.omega_hwobj = None
        self.kappa_hwobj = None
        self.phi_hwobj = None
        self.lims_client_hwobj = None
        self.machine_info_hwobj = None
        self.energy_hwobj = None
        self.resolution_hwobj = None
        self.transmission_hwobj = None
        self.detector_hwobj = None
        self.beam_info_hwobj = None
        self.autoprocessing_hwobj = None
        self.graphics_manager_hwobj = None
        self.mxlocal = None

        self.helical_positions = None
Exemple #3
0
    def init(self):
        """
        Descript. :
        """

        AbstractCollect.init(self)

        self.dtox_hwobj = self.getObjectByRole("dtox")

        #todo
        self.detector_cover_hwobj = self.getObjectByRole(
            "detector_cover")  #use mockup now
        self.safety_shutter_hwobj = self.getObjectByRole("safety_shutter")
        self.fast_shutter_hwobj = self.getObjectByRole("fast_shutter")

        #todo
        #self.cryo_stream_hwobj = self.getObjectByRole("cryo_stream")

        self.exp_type_dict = {'Mesh': 'Mesh', 'Helical': 'Helical'}
        """ to add """
        #self.chan_undulator_gap = self.getChannelObject('UndulatorGap')
        #self.chan_machine_current = self.getChannelObject("MachineCurrent")

        self.emit("collectConnected", (True, ))
        self.emit("collectReady", (True, ))
    def __init__(self, name):
        """

        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)
        self._centring_status = None
        self._previous_collect_status = None
        self._actual_collect_status = None
        self.current_dc_parameters = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame  = None
        self.ready_event = None

        self.exp_type_dict = None
        self.aborted_by_user = None 

        self.diffractometer_hwobj = None
        self.lims_client_hwobj = None
        self.machine_info_hwobj = None
        self.energy_hwobj = None
        self.resolution_hwobj = None
        self.transmission_hwobj = None
        self.detector_hwobj = None
        self.beam_info_hwobj = None
        self.autoprocessing_hwobj = None
        self.graphics_manager_hwobj = None
    def __init__(self, name):
        """

        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)
        self._centring_status = None
        self._previous_collect_status = None
        self._actual_collect_status = None
        self.current_dc_parameters = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame = None
        self.ready_event = None

        self.exp_type_dict = None
        self.aborted_by_user = None

        self.diffractometer_hwobj = None
        self.lims_client_hwobj = None
        self.machine_info_hwobj = None
        self.energy_hwobj = None
        self.resolution_hwobj = None
        self.transmission_hwobj = None
        self.detector_hwobj = None
        self.beam_info_hwobj = None
        self.autoprocessing_hwobj = None
        self.graphics_manager_hwobj = None
 def collection_finished(self):
     AbstractCollect.collection_finished(self)
     if (
         self.current_dc_parameters["in_queue"] is False
         and self.break_bragg_released
     ):
         self.break_bragg_released = False
         self.energy_hwobj.set_break_bragg()
Exemple #7
0
    def __init__(self, name):
        """
        Descript. :
        """
        AbstractCollect.__init__(self, name)

        self.helical = False
        self.helical_pos = None
    def init(self):
        """Main init method
        """

        AbstractCollect.init(self)

        self.graphics_manager_hwobj = self.getObjectByRole("graphics_manager")

        self.emit("collectConnected", (True,))
        self.emit("collectReady", (True, ))
Exemple #9
0
    def __init__(self, name):
        """
        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self, name)
        self._previous_collect_status = None
        self._actual_collect_status = None

        self._use_still = None
        self._collect_frame = None
        self._exp_type_dict = {}
        self.break_bragg_released = False

        self.aborted_by_user = None
        self.run_autoprocessing = None

        self.chan_collect_status = None
        self.chan_collect_frame = None
        self.chan_collect_error = None
        self.chan_undulator_gap = None

        self.cmd_collect_compression = None
        self.cmd_collect_description = None
        self.cmd_collect_detector = None
        self.cmd_collect_directory = None
        self.cmd_collect_energy = None
        self.cmd_collect_exposure_time = None
        self.cmd_collect_helical_position = None
        self.cmd_collect_in_queue = None
        self.cmd_collect_num_images = None
        self.cmd_collect_overlap = None
        self.cmd_collect_processing = None
        self.cmd_collect_range = None
        self.cmd_collect_raster_lines = None
        self.cmd_collect_raster_range = None
        self.cmd_collect_resolution = None
        self.cmd_collect_scan_type = None
        self.cmd_collect_shutter = None
        self.cmd_collect_shutterless = None
        self.cmd_collect_start_angle = None
        self.cmd_collect_start_image = None
        self.cmd_collect_template = None
        self.cmd_collect_transmission = None
        self.cmd_collect_space_group = None
        self.cmd_collect_unit_cell = None
        self.cmd_collect_start = None
        self.cmd_collect_abort = None
        self.cmd_collect_xds_data_range = None

        self.flux_hwobj = None
        self.graphics_manager_hwobj = None
        self.image_tracking_hwobj = None
    def __init__(self, name):
        """

        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self, name)

        self.aborted_by_user = False
        self.graphics_manager_hwobj = None
    def __init__(self, name):
        """
        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self, name)
        self._previous_collect_status = None
        self._actual_collect_status = None

        self._use_still = None
        self._collect_frame = None
        self._exp_type_dict = {}
        self.break_bragg_released = False

        self.aborted_by_user = None
        self.run_autoprocessing = None

        self.chan_collect_status = None
        self.chan_collect_frame = None
        self.chan_collect_error = None
        self.chan_undulator_gap = None

        self.cmd_collect_compression = None
        self.cmd_collect_description = None
        self.cmd_collect_detector = None
        self.cmd_collect_directory = None
        self.cmd_collect_energy = None
        self.cmd_collect_exposure_time = None
        self.cmd_collect_helical_position = None
        self.cmd_collect_in_queue = None
        self.cmd_collect_num_images = None
        self.cmd_collect_overlap = None
        self.cmd_collect_processing = None
        self.cmd_collect_range = None
        self.cmd_collect_raster_lines = None
        self.cmd_collect_raster_range = None
        self.cmd_collect_resolution = None
        self.cmd_collect_scan_type = None
        self.cmd_collect_shutter = None
        self.cmd_collect_shutterless = None
        self.cmd_collect_start_angle = None
        self.cmd_collect_start_image = None
        self.cmd_collect_template = None
        self.cmd_collect_transmission = None
        self.cmd_collect_space_group = None
        self.cmd_collect_unit_cell = None
        self.cmd_collect_start = None
        self.cmd_collect_abort = None
        self.cmd_collect_xds_data_range = None

        self.flux_hwobj = None
        self.graphics_manager_hwobj = None
        self.image_tracking_hwobj = None
    def init(self):
        """Main init method"""

        AbstractCollect.init(self)

        self.flux_hwobj = self.getObjectByRole("flux")
        self.graphics_manager_hwobj = self.getObjectByRole("graphics_manager")
        self.image_tracking_hwobj = self.getObjectByRole("image_tracking")

        self._exp_type_dict = {"Mesh": "raster", "Helical": "Helical"}

        self.chan_collect_status = self.getChannelObject("collectStatus")
        self._actual_collect_status = self.chan_collect_status.getValue()
        self.chan_collect_status.connectSignal("update", self.collect_status_update)
        self.chan_collect_frame = self.getChannelObject("collectFrame")
        self.chan_collect_frame.connectSignal("update", self.collect_frame_update)
        self.chan_collect_error = self.getChannelObject("collectError")
        self.chan_collect_error.connectSignal("update", self.collect_error_update)
        self.cmd_collect_compression = self.getCommandObject("collectCompression")
        self.cmd_collect_description = self.getCommandObject("collectDescription")
        self.cmd_collect_detector = self.getCommandObject("collectDetector")
        self.cmd_collect_directory = self.getCommandObject("collectDirectory")
        self.cmd_collect_energy = self.getCommandObject("collectEnergy")
        self.cmd_collect_exposure_time = self.getCommandObject("collectExposureTime")
        self.cmd_collect_helical_position = self.getCommandObject(
            "collectHelicalPosition"
        )
        self.cmd_collect_in_queue = self.getCommandObject("collectInQueue")
        self.cmd_collect_num_images = self.getCommandObject("collectNumImages")
        self.cmd_collect_overlap = self.getCommandObject("collectOverlap")
        self.cmd_collect_processing = self.getCommandObject("collectProcessing")
        self.cmd_collect_range = self.getCommandObject("collectRange")
        self.cmd_collect_raster_lines = self.getCommandObject("collectRasterLines")
        self.cmd_collect_raster_range = self.getCommandObject("collectRasterRange")
        self.cmd_collect_resolution = self.getCommandObject("collectResolution")
        self.cmd_collect_scan_type = self.getCommandObject("collectScanType")
        self.cmd_collect_shutter = self.getCommandObject("collectShutter")
        self.cmd_collect_shutterless = self.getCommandObject("collectShutterless")
        self.cmd_collect_start_angle = self.getCommandObject("collectStartAngle")
        self.cmd_collect_start_image = self.getCommandObject("collectStartImage")
        self.cmd_collect_template = self.getCommandObject("collectTemplate")
        self.cmd_collect_transmission = self.getCommandObject("collectTransmission")
        self.cmd_collect_space_group = self.getCommandObject("collectSpaceGroup")
        self.cmd_collect_unit_cell = self.getCommandObject("collectUnitCell")
        self.cmd_collect_xds_data_range = self.getCommandObject("collectXdsDataRange")

        self.cmd_collect_start = self.getCommandObject("collectStart")
        self.cmd_collect_abort = self.getCommandObject("collectAbort")

        self._use_still = self.getProperty("use_still")

        self.emit("collectConnected", (True,))
        self.emit("collectReady", (True,))
    def __init__(self, name):
        """
        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self, name)
        HardwareObject.__init__(self, name)

        self.current_dc_parameters = None
        self.osc_id = None
        self.owner = None
        self.aborted_by_user = None
        self.slits1 = slits1()
    def __init__(self, name):
        """
        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self, name)
        HardwareObject.__init__(self, name)

        self.current_dc_parameters = None
        self.osc_id = None
        self.owner = None
        self.aborted_by_user = None
        self.slits1 = slits1()
    def __init__(self, name):
        """
        Descript. :
        """
        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)
        self._centring_status = None
        self._previous_collect_status = None
        self._actual_collect_status = None
        self.current_dc_parameters = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame  = None
        self.ready_event = None

        self.chan_collect_status = None
        self.chan_collect_frame = None
        self.chan_collect_error = None
        self.chan_undulator_gap = None

        self.cmd_collect_description = None
        self.cmd_collect_detector = None
        self.cmd_collect_directory = None
        self.cmd_collect_energy = None
        self.cmd_collect_exposure_time = None
        self.cmd_collect_helical_position = None
        self.cmd_collect_num_images = None
        self.cmd_collect_overlap = None
        self.cmd_collect_range = None
        self.cmd_collect_raster_lines = None
        self.cmd_collect_raster_range = None
        self.cmd_collect_resolution = None
        self.cmd_collect_scan_type = None
        self.cmd_collect_shutter = None
        self.cmd_collect_shutterless = None
        self.cmd_collect_start_angle = None
        self.cmd_collect_start_image = None
        self.cmd_collect_template = None
        self.cmd_collect_transmission = None
        self.cmd_collect_space_group = None
        self.cmd_collect_unit_cell = None
        self.cmd_collect_start = None
        self.cmd_collect_abort = None
    def __init__(self, name):
        """
        Descript. :
        """
        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)
        self._centring_status = None
        self._previous_collect_status = None
        self._actual_collect_status = None
        self.actual_data_collect_parameters = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame = None
        self.ready_event = None

        self.chan_collect_status = None
        self.chan_collect_frame = None
        self.chan_collect_error = None
        self.chan_undulator_gap = None

        self.cmd_collect_description = None
        self.cmd_collect_detector = None
        self.cmd_collect_directory = None
        self.cmd_collect_energy = None
        self.cmd_collect_exposure_time = None
        self.cmd_collect_helical_position = None
        self.cmd_collect_num_images = None
        self.cmd_collect_overlap = None
        self.cmd_collect_range = None
        self.cmd_collect_raster_lines = None
        self.cmd_collect_raster_range = None
        self.cmd_collect_resolution = None
        self.cmd_collect_scan_type = None
        self.cmd_collect_shutter = None
        self.cmd_collect_shutterless = None
        self.cmd_collect_start_angle = None
        self.cmd_collect_start_image = None
        self.cmd_collect_template = None
        self.cmd_collect_transmission = None
        self.cmd_collect_space_group = None
        self.cmd_collect_unit_cell = None
        self.cmd_collect_start = None
        self.cmd_collect_abort = None
    def __init__(self, name):
        """
        Descript. :
        """
        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)

        self._centring_status = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame  = None
        self.helical = False
        self.helical_pos = None
        self.ready_event = None

        self.exp_type_dict = None
Exemple #18
0
    def __init__(self, name):
        """
        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)
        self._centring_status = None
        self._previous_collect_status = None
        self._actual_collect_status = None
        self.current_dc_parameters = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame = None
        self.ready_event = None
        self.use_still = None
        self.break_bragg_released = False

        self.exp_type_dict = None
        self.aborted_by_user = None
        self.run_autoprocessing = None

        self.chan_collect_status = None
        self.chan_collect_frame = None
        self.chan_collect_error = None
        self.chan_undulator_gap = None

        self.cmd_collect_description = None
        self.cmd_collect_detector = None
        self.cmd_collect_directory = None
        self.cmd_collect_energy = None
        self.cmd_collect_exposure_time = None
        self.cmd_collect_helical_position = None
        self.cmd_collect_in_queue = None
        self.cmd_collect_num_images = None
        self.cmd_collect_overlap = None
        self.cmd_collect_range = None
        self.cmd_collect_raster_lines = None
        self.cmd_collect_raster_range = None
        self.cmd_collect_resolution = None
        self.cmd_collect_scan_type = None
        self.cmd_collect_shutter = None
        self.cmd_collect_shutterless = None
        self.cmd_collect_start_angle = None
        self.cmd_collect_start_image = None
        self.cmd_collect_template = None
        self.cmd_collect_transmission = None
        self.cmd_collect_space_group = None
        self.cmd_collect_unit_cell = None
        self.cmd_collect_start = None
        self.cmd_collect_abort = None
        self.cmd_collect_xds_data_range = None
        self.cmd_set_calibration_name = None

        self.diffractometer_hwobj = None
        self.lims_client_hwobj = None
        self.machine_info_hwobj = None
        self.flux_hwobj = None
        self.energy_hwobj = None
        self.resolution_hwobj = None
        self.transmission_hwobj = None
        self.detector_hwobj = None
        self.beam_info_hwobj = None
        self.autoprocessing_hwobj = None
        self.graphics_manager_hwobj = None
        self.image_tracking_hwobj = None
Exemple #19
0
 def collection_finished(self):
     AbstractCollect.collection_finished(self)
     if self.current_dc_parameters['in_queue'] is False and \
             self.break_bragg_released:
         self.break_bragg_released = False
         self.energy_hwobj.set_break_bragg()
    def __init__(self, name):

        """
        :param name: name of the object
        :type name: string
        """

        AbstractCollect.__init__(self)
        HardwareObject.__init__(self, name)
        self._centring_status = None
        self._previous_collect_status = None
        self._actual_collect_status = None
        self.current_dc_parameters = None

        self.osc_id = None
        self.owner = None
        self._collecting = False
        self._error_msg = ""
        self._error_or_aborting = False
        self.collect_frame = None
        self.ready_event = None
        self.use_still = None
        self.break_bragg_released = False

        self.exp_type_dict = None
        self.aborted_by_user = None
        self.run_autoprocessing = None

        self.chan_collect_status = None
        self.chan_collect_frame = None
        self.chan_collect_error = None
        self.chan_undulator_gap = None

        self.cmd_collect_description = None
        self.cmd_collect_detector = None
        self.cmd_collect_directory = None
        self.cmd_collect_energy = None
        self.cmd_collect_exposure_time = None
        self.cmd_collect_helical_position = None
        self.cmd_collect_in_queue = None
        self.cmd_collect_num_images = None
        self.cmd_collect_overlap = None
        self.cmd_collect_range = None
        self.cmd_collect_raster_lines = None
        self.cmd_collect_raster_range = None
        self.cmd_collect_resolution = None
        self.cmd_collect_scan_type = None
        self.cmd_collect_shutter = None
        self.cmd_collect_shutterless = None
        self.cmd_collect_start_angle = None
        self.cmd_collect_start_image = None
        self.cmd_collect_template = None
        self.cmd_collect_transmission = None
        self.cmd_collect_space_group = None
        self.cmd_collect_unit_cell = None
        self.cmd_collect_start = None
        self.cmd_collect_abort = None
        self.cmd_collect_xds_data_range = None
        self.cmd_set_calibration_name = None

        self.diffractometer_hwobj = None
        self.lims_client_hwobj = None
        self.machine_info_hwobj = None
        self.flux_hwobj = None
        self.energy_hwobj = None
        self.resolution_hwobj = None
        self.transmission_hwobj = None
        self.detector_hwobj = None
        self.beam_info_hwobj = None
        self.autoprocessing_hwobj = None
        self.graphics_manager_hwobj = None
        self.image_tracking_hwobj = None
Exemple #21
0
    def init(self):
        """Main init method"""

        AbstractCollect.init(self)

        self.flux_hwobj = self.getObjectByRole("flux")
        self.graphics_manager_hwobj = self.getObjectByRole("graphics_manager")
        self.image_tracking_hwobj = self.getObjectByRole("image_tracking")

        self._exp_type_dict = {'Mesh': 'raster', 'Helical': 'Helical'}

        self.chan_collect_status = self.getChannelObject('collectStatus')
        self._actual_collect_status = self.chan_collect_status.getValue()
        self.chan_collect_status.connectSignal('update',
                                               self.collect_status_update)
        self.chan_collect_frame = self.getChannelObject('collectFrame')
        self.chan_collect_frame.connectSignal('update',
                                              self.collect_frame_update)
        self.chan_collect_error = self.getChannelObject('collectError')
        self.chan_collect_error.connectSignal('update',
                                              self.collect_error_update)
        self.cmd_collect_compression = \
            self.getCommandObject('collectCompression')
        self.cmd_collect_description = \
            self.getCommandObject('collectDescription')
        self.cmd_collect_detector = \
            self.getCommandObject('collectDetector')
        self.cmd_collect_directory = \
            self.getCommandObject('collectDirectory')
        self.cmd_collect_energy = \
            self.getCommandObject('collectEnergy')
        self.cmd_collect_exposure_time = \
            self.getCommandObject('collectExposureTime')
        self.cmd_collect_helical_position = \
            self.getCommandObject('collectHelicalPosition')
        self.cmd_collect_in_queue = \
            self.getCommandObject('collectInQueue')
        self.cmd_collect_num_images = \
            self.getCommandObject('collectNumImages')
        self.cmd_collect_overlap = \
            self.getCommandObject('collectOverlap')
        self.cmd_collect_processing = \
            self.getCommandObject('collectProcessing')
        self.cmd_collect_range = \
            self.getCommandObject('collectRange')
        self.cmd_collect_raster_lines = \
            self.getCommandObject('collectRasterLines')
        self.cmd_collect_raster_range = \
            self.getCommandObject('collectRasterRange')
        self.cmd_collect_resolution = \
            self.getCommandObject('collectResolution')
        self.cmd_collect_scan_type = \
            self.getCommandObject('collectScanType')
        self.cmd_collect_shutter = \
            self.getCommandObject('collectShutter')
        self.cmd_collect_shutterless = \
            self.getCommandObject('collectShutterless')
        self.cmd_collect_start_angle = \
            self.getCommandObject('collectStartAngle')
        self.cmd_collect_start_image = \
            self.getCommandObject('collectStartImage')
        self.cmd_collect_template = \
            self.getCommandObject('collectTemplate')
        self.cmd_collect_transmission = \
            self.getCommandObject('collectTransmission')
        self.cmd_collect_space_group = \
            self.getCommandObject('collectSpaceGroup')
        self.cmd_collect_unit_cell = \
            self.getCommandObject('collectUnitCell')
        self.cmd_collect_xds_data_range = \
            self.getCommandObject('collectXdsDataRange')

        self.cmd_collect_start = self.getCommandObject('collectStart')
        self.cmd_collect_abort = self.getCommandObject('collectAbort')

        self._use_still = self.getProperty("use_still")

        self.emit("collectConnected", (True, ))
        self.emit("collectReady", (True, ))