Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 def abort(self):
     # surpass the PoolElement.abort because it doesn't do what we want
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
Ejemplo n.º 6
0
 def stop(self):
     # surpass the PoolElement.stop because it doesn't do what we want
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
Ejemplo n.º 7
0
 def abort(self):
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
Ejemplo n.º 8
0
 def stop(self):
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
Ejemplo n.º 9
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'])
Ejemplo n.º 10
0
 def abort(self):
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
Ejemplo n.º 11
0
 def stop(self):
     self.info("Stop!")
     PoolBaseElement.stop(self)
     self.controller.stop_one(self.axis)
Ejemplo n.º 12
0
 def stop(self):
     # surpass the PoolElement.stop because it doesn't do what we want
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)
Ejemplo n.º 13
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'])
Ejemplo n.º 14
0
 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
Ejemplo n.º 15
0
 def abort(self):
     self.info("Abort!")
     PoolBaseElement.abort(self)
     self.controller.abort_element(self)
Ejemplo n.º 16
0
 def stop(self):
     self.info("Stop!")
     PoolBaseElement.stop(self)
     self.controller.stop_element(self)
Ejemplo n.º 17
0
 def abort(self):
     self.info("Abort!")
     PoolBaseElement.abort(self)
     self.controller.abort_one(self.axis)
Ejemplo n.º 18
0
 def abort(self):
     # surpass the PoolElement.abort because it doesn't do what we want
     PoolBaseElement.abort(self)
     PoolBaseGroup.abort(self)
Ejemplo n.º 19
0
 def stop(self):
     PoolBaseElement.stop(self)
     PoolBaseGroup.stop(self)