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)
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)
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)
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)
def stop(self): # surpass the PoolElement.stop because it doesn't do what we want PoolBaseElement.stop(self) PoolBaseGroup.stop(self)
def __init__(self, **kwargs): user_elements = kwargs.pop('user_elements') PoolBaseElement.__init__(self, **kwargs) PoolBaseGroup.__init__(self, user_elements=user_elements, pool=kwargs['pool'])
def get_operation(self): return PoolBaseGroup.get_operation(self)
def abort(self): # surpass the PoolElement.abort because it doesn't do what we want PoolBaseElement.abort(self) PoolBaseGroup.abort(self)
def stop(self): PoolBaseElement.stop(self) PoolBaseGroup.stop(self)
def abort(self): PoolBaseElement.abort(self) PoolBaseGroup.abort(self)
def add_user_element(self, element, index=None): index = PoolBaseGroup.add_user_element(self, element, index) element.add_pseudo_element(self) return index