Exemplo n.º 1
0
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
     self._calibration = []
     self._positions = []
     self._labels = []
     self._configuration = None
     self._calibration_cfg = None
     self._positions_cfg = None
     self._labels_cfg = None
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
     self.strip = ""
     self.current_user_energy = 0.0
     self.hfm_positions = {"Si": self.hfm_pos_Si, "Rh": self.hfm_pos_Rh}
     self.vfm_1_positions = {
         "Si": self.vfm_1_pos_Si,
         "Rh": self.vfm_1_pos_Rh
     }
     self.vfm_2_positions = {
         "Si": self.vfm_2_pos_Si,
         "Rh": self.vfm_2_pos_Rh
     }
     self.piezo_hfm = {"Si": self.piezo_hfm_Si, "Rh": self.piezo_hfm_Rh}
     self.piezo_vfm = {"Si": self.piezo_vfm_Si, "Rh": self.piezo_vfm_Rh}
Exemplo n.º 3
0
    def __init__(self, inst, props, *args, **kwargs):
        PseudoMotorController.__init__(self, inst, props, *args, **kwargs)

        try:
            self.tx1 = [float(c) for c in props['Tx1Coordinates'].split(',')]
            self.tx2 = [float(c) for c in props['Tx2Coordinates'].split(',')]
            self.dx = float(props['Dx'])

            if len(self.tx1) != 2 or len(self.tx2) != 2:
                raise ValueError("Tx1 and Tx2 Coordinates properties must "
                                 "be x,y coordinates in local system")

            if self.tx1[1] == self.tx2[1]:
                raise ValueError('The mirror must be initially horizontal!')

        except ValueError as e:
            self._log.error('Could not parse class properties to '
                            'generate coordinates.')
            raise e
    def __init__(self, inst, props, *args, **kwargs):
        PseudoMotorController.__init__(self, inst, props, *args, **kwargs)

        self.aperture_origin = 0.0  # mm (init value for Horizontal...)
        self.offset_origin = 0.0  # mm (init value for Horizontal...)
Exemplo n.º 5
0
 def __init__(self, inst, props):
     PseudoMotorController.__init__(self, inst, props)
Exemplo n.º 6
0
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
     self._log.debug("Created SLIT %s", inst)
     self._example = {}
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
    def __init__(self, inst, props, *args, **kwargs):
        PseudoMotorController.__init__(self, inst, props, *args, **kwargs)

        self.current_user_energy = 0.0
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
     self.energy_attr = None
     self.bcu_att1_wheel = None
     self.bcu_att2_wheel = None
     self.bcu_att3_wheel = None
    def __init__(self, inst, props, *args, **kwargs):

        PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
        self._log.debug("Created a two-coupled PseudoMotor")
Exemplo n.º 11
0
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
     self.dim_x = self.dim_x / 1000.  # change unit mm -> m
     self.dim_y = self.dim_y / 1000.  # change unit mm -> m
Exemplo n.º 12
0
 def __init__(self, inst, props, *args, **kwargs):
     PseudoMotorController.__init__(self, inst, props, *args, **kwargs)
     self._log.debug("Created SLIT %s", inst)
     self._example = {}
 def GetAxisAttributes(self, axis):
     axis_attrs = PseudoMotorController.GetAxisAttributes(self, axis)
     axis_attrs = dict(axis_attrs)
     axis_attrs['Position']['type'] = float
     return axis_attrs