def serialize(self, *args, **kwargs): kwargs = PoolBaseElement.serialize(self, *args, **kwargs) elements = [elem.name for elem in self.get_user_elements()] physical_elements = [] for elem_list in self.get_physical_elements().values(): for elem in elem_list: physical_elements.append(elem.name) kwargs['elements'] = elements kwargs['physical_elements'] = physical_elements return kwargs
def serialize(self, *args, **kwargs): kwargs = PoolBaseElement.serialize(self, *args, **kwargs) kwargs['controller'] = self.controller.full_name kwargs['axis'] = self.axis if self.instrument is not None: kwargs['instrument'] = self.instrument.full_name else: kwargs['instrument'] = None kwargs['source'] = self.get_source() return kwargs
def serialize(self, *args, **kwargs): kwargs = PoolBaseElement.serialize(self, *args, **kwargs) elements = [elem.name for elem in self.get_user_elements()] physical_elements = [] for elem_list in self.get_physical_elements().values(): for elem in elem_list: physical_elements.append(elem.name) kwargs['elements'] = elements kwargs['physical_elements'] = physical_elements return kwargs
def serialize(self, *args, **kwargs): kwargs = PoolBaseElement.serialize(self, *args, **kwargs) kwargs['controller'] = self.controller.full_name kwargs['unit'] = '0' #TODO: hardcoded unit to 0 kwargs['axis'] = self.axis if self.instrument is not None: kwargs['instrument'] = self.instrument.full_name else: kwargs['instrument'] = None kwargs['source'] = self.get_source() return kwargs
def abort(self): # surpass the PoolElement.abort because it doesn't do what we want PoolBaseElement.abort(self) PoolBaseGroup.abort(self)
def stop(self): # surpass the PoolElement.stop because it doesn't do what we want PoolBaseElement.stop(self) PoolBaseGroup.stop(self)
def abort(self): PoolBaseElement.abort(self) PoolBaseGroup.abort(self)
def stop(self): 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 abort(self): PoolBaseElement.abort(self) PoolBaseGroup.abort(self)
def stop(self): self.info("Stop!") PoolBaseElement.stop(self) self.controller.stop_one(self.axis)
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 serialize(self, *args, **kwargs): kwargs = PoolBaseElement.serialize(self, *args, **kwargs) kwargs['controller'] = self.controller.full_name kwargs['axis'] = self.axis kwargs['source'] = self.get_source() return kwargs
def abort(self): self.info("Abort!") PoolBaseElement.abort(self) self.controller.abort_element(self)
def stop(self): self.info("Stop!") PoolBaseElement.stop(self) self.controller.stop_element(self)
def abort(self): self.info("Abort!") PoolBaseElement.abort(self) self.controller.abort_one(self.axis)
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)