예제 #1
0
 def __init__(self, **kwargs):
     self._siblings = None
     user_elements = kwargs.pop('user_elements')
     kwargs['elem_type'] = ElementType.PseudoCounter
     # don't switch the order of constructors!
     PoolBaseGroup.__init__(self, user_elements=user_elements,
                            pool=kwargs['pool'])
     PoolBaseChannel.__init__(self, **kwargs)
예제 #2
0
 def __init__(self, **kwargs):
     self._siblings = None
     user_elements = kwargs.pop('user_elements')
     kwargs['elem_type'] = ElementType.PseudoCounter
     # don't switch the order of constructors!
     PoolBaseGroup.__init__(self, user_elements=user_elements,
                            pool=kwargs['pool'])
     PoolBaseChannel.__init__(self, **kwargs)
예제 #3
0
 def __init__(self, **kwargs):
     self._siblings = None
     self._in_start_move = False
     self._drift_correction = kwargs.pop("drift_correction", None)
     user_elements = kwargs.pop("user_elements")
     kwargs["elem_type"] = ElementType.PseudoMotor
     PoolElement.__init__(self, **kwargs)
     PoolBaseGroup.__init__(self, user_elements=user_elements, pool=kwargs["pool"])
     self._position = Position(self, listeners=self.on_change)
예제 #4
0
 def __init__(self, **kwargs):
     self._siblings = None
     self._in_start_move = False
     self._drift_correction = kwargs.pop('drift_correction', None)
     user_elements = kwargs.pop('user_elements')
     kwargs['elem_type'] = ElementType.PseudoMotor
     PoolElement.__init__(self, **kwargs)
     PoolBaseGroup.__init__(self, user_elements=user_elements,
                            pool=kwargs['pool'])
     self._position = Position(self, listeners=self.on_change)
예제 #5
0
    def add_user_element(self, element, index=None):
        elem_type = element.get_type()
        if elem_type == ElementType.Motor:
            pass
        elif elem_type == ElementType.PseudoMotor:
            # TODO: make this happen
            pass
        else:
            raise Exception("element %s is not a motor" % element.name)

        PoolBaseGroup.add_user_element(self, element, index=index)
예제 #6
0
    def add_user_element(self, element, index=None):
        elem_type = element.get_type()
        if elem_type == ElementType.Motor:
            pass
        elif elem_type == ElementType.PseudoMotor:
            # TODO: make this happen
            pass
        else:
            raise Exception("element %s is not a motor" % element.name)

        PoolBaseGroup.add_user_element(self, element, index=index)
예제 #7
0
 def stop(self):
     # surpass the PoolElement.stop because it doesn't do what we want
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
예제 #8
0
 def __init__(self, **kwargs):
     user_elements = kwargs.pop('user_elements')
     PoolBaseElement.__init__(self, **kwargs)
     PoolBaseGroup.__init__(self, user_elements=user_elements,
                            pool=kwargs['pool'])
예제 #9
0
 def get_operation(self):
     return PoolBaseGroup.get_operation(self)
예제 #10
0
 def abort(self):
     # surpass the PoolElement.abort because it doesn't do what we want
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
예제 #11
0
 def stop(self):
     # surpass the PoolElement.stop because it doesn't do what we want
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
예제 #12
0
 def stop(self):
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
예제 #13
0
 def abort(self):
     # surpass the PoolElement.abort because it doesn't do what we want
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
예제 #14
0
 def abort(self):
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
예제 #15
0
 def stop(self):
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
예제 #16
0
 def __init__(self, **kwargs):
     user_elements = kwargs.pop('user_elements')
     PoolBaseElement.__init__(self, **kwargs)
     PoolBaseGroup.__init__(self,
                            user_elements=user_elements,
                            pool=kwargs['pool'])
예제 #17
0
 def abort(self):
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
예제 #18
0
 def get_operation(self):
     return PoolBaseGroup.get_operation(self)
예제 #19
0
 def add_user_element(self, element, index=None):
     index = PoolBaseGroup.add_user_element(self, element, index)
     element.add_pseudo_element(self)
     return index