예제 #1
0
    def init(self):
        self.motor_name = "Zoom"
        self.motor_pos_attr_suffix = "Position"
        self._last_position_name = None

        self.predefined_position_attr = self.getChannelObject("predefined_position")
        if not self.predefined_position_attr:
            self.predefined_position_attr = self.addChannel(
                {"type": "exporter", "name": "predefined_position"},
                "CoaxialCameraZoomValue",
            )

        self.predefinedPositions = {
            "Zoom 1": 1,
            "Zoom 2": 2,
            "Zoom 3": 3,
            "Zoom 4": 4,
            "Zoom 5": 5,
            "Zoom 6": 6,
            "Zoom 7": 7,
            "Zoom 8": 8,
            "Zoom 9": 9,
            "Zoom 10": 10,
        }
        self.sortPredefinedPositionsList()

        MicrodiffMotor.init(self)
예제 #2
0
    def init(self):
        self.motor_name = "Zoom"
        self.motor_pos_attr_suffix = "Position"
        self._last_position_name = None

        self.predefined_position_attr = self.getChannelObject(
            "predefined_position")
        if not self.predefined_position_attr:
            self.predefined_position_attr = self.addChannel(
                {
                    "type": "exporter",
                    "name": "predefined_position"
                }, "CoaxialCameraZoomValue")

        self.predefinedPositions = {
            "Zoom 1": 1,
            "Zoom 2": 2,
            "Zoom 3": 3,
            "Zoom 4": 4,
            "Zoom 5": 5,
            "Zoom 6": 6,
            "Zoom 7": 7,
            "Zoom 8": 8,
            "Zoom 9": 9,
            "Zoom 10": 10
        }
        self.sortPredefinedPositionsList()

        MicrodiffMotor.init(self)
 def __init__(self, name):
     MicrodiffMotor.__init__(self, name)
     
     self.motor_name = name
     self.sampx = None
     self.sampy = None
     self.phi = None
     self.direction = None
     self.motorState = MicrodiffMotor.NOTINITIALIZED 
    def __init__(self, name):
        MicrodiffMotor.__init__(self, name)

        self.motor_name = name
        self.sampx = None
        self.sampy = None
        self.phi = None
        self.direction = None
        self.motorState = MicrodiffMotor.NOTINITIALIZED
 def init(self):
     if not self.getMotorMnemonic() in ("Kappa", "Phi"):
         raise RuntimeError("MicrodiffKappaMotor class is only for kappa motors")
     MicrodiffKappaMotor.motors[self.getMotorMnemonic()] = self
     if self.getMotorMnemonic() == "Kappa":
         MicrodiffKappaMotor.conf["KappaTrans"] = self.stringToList(self.kappaTrans)
         MicrodiffKappaMotor.conf["KappaTransD"] = self.stringToList(self.kappaTransD)
     elif self.getMotorMnemonic() == "Phi":
         MicrodiffKappaMotor.conf["PhiTrans"] = self.stringToList(self.phiTrans)
         MicrodiffKappaMotor.conf["PhiTransD"] = self.stringToList(self.phiTransD)
     MicrodiffMotor.init(self)
     self.sampx = self.getObjectByRole("sampx")
     self.sampy = self.getObjectByRole("sampy")
     self.phiy = self.getObjectByRole("phiy")
 def init(self): 
     if not self.getMotorMnemonic() in ('Kappa', 'Phi'):
         raise RuntimeError("MicrodiffKappaMotor class is only for kappa motors")
     MicrodiffKappaMotor.motors[self.getMotorMnemonic()]=self
     if self.getMotorMnemonic() == 'Kappa':
         MicrodiffKappaMotor.conf['KappaTrans'] = self.stringToList(self.kappaTrans)
         MicrodiffKappaMotor.conf['KappaTransD'] = self.stringToList(self.kappaTransD)
     elif self.getMotorMnemonic() == 'Phi':
         MicrodiffKappaMotor.conf['PhiTrans'] = self.stringToList(self.phiTrans)
         MicrodiffKappaMotor.conf['PhiTransD'] = self.stringToList(self.phiTransD)
     MicrodiffMotor.init(self)
     self.sampx = self.getObjectByRole("sampx")
     self.sampy = self.getObjectByRole("sampy")
     self.phiy = self.getObjectByRole("phiy")
 def init(self):
     if not self.getMotorMnemonic() in ('Kappa', 'Phi'):
         raise RuntimeError(
             "MicrodiffKappaMotor class is only for kappa motors")
     MicrodiffKappaMotor.motors[self.getMotorMnemonic()] = self
     if self.getMotorMnemonic() == 'Kappa':
         MicrodiffKappaMotor.conf['KappaTrans'] = self.stringToList(
             self.kappaTrans)
         MicrodiffKappaMotor.conf['KappaTransD'] = self.stringToList(
             self.kappaTransD)
     elif self.getMotorMnemonic() == 'Phi':
         MicrodiffKappaMotor.conf['PhiTrans'] = self.stringToList(
             self.phiTrans)
         MicrodiffKappaMotor.conf['PhiTransD'] = self.stringToList(
             self.phiTransD)
     MicrodiffMotor.init(self)
     self.sampx = self.getObjectByRole("sampx")
     self.sampy = self.getObjectByRole("sampy")
     self.phiy = self.getObjectByRole("phiy")
 def __init__(self, name):
     MicrodiffMotor.__init__(self, name)
예제 #9
0
 def __init__(self, name):
     MicrodiffMotor.__init__(self, name)