PseudoMotor
¶
Classes
PseudoMotor¶
-
class
PseudoMotor
(dclass, name)[source]¶ Bases:
sardana.tango.pool.PoolDevice.PoolElementDevice
-
init
(name)[source]¶ initialize the device once in the object lifetime. Override when necessary but always call the method from your super class
Parameters: name (str) – device name
-
pseudo_motor
¶
-
delete_device
¶
-
init_device
¶
-
get_dynamic_attributes
()[source]¶ Override of
PoolDevice.get_dynamic_attributes
. Returns the standard dynamic and fully dynamic attributes for this device. The return is a tuple of two dictionaries:- standard attributes: caseless dictionary with key being the attribute name and value is a tuple of attribute name(str), tango information, attribute information
- dynamic attributes: caseless dictionary with key being the attribute name and value is a tuple of attribute name(str), tango information, attribute information
- tango information
- seq<
CmdArgType
,AttrDataFormat
,AttrWriteType
> - attribute information
- attribute information as returned by the sardana controller
Returns: the standard dynamic and fully dynamic attributes Return type: seq< CaselessDict
,CaselessDict
>
-
CalcPseudo
(physical_positions)[source]¶ Returns the pseudo motor position for the given physical positions
-
CalcPhysical
(pseudo_position)[source]¶ Returns the physical motor positions for the given pseudo motor position assuming the current pseudo motor write positions for all the other sibling pseudo motors
-
CalcAllPhysical
(pseudo_positions)[source]¶ Returns the physical motor positions for the given pseudo motor position(s)
-
CalcAllPseudo
(physical_positions)[source]¶ Returns the pseudo motor position(s) for the given physical positions
-
is_Position_allowed
(req_type)¶ Generic is_allowed
-
PseudoMotorClass¶
-
class
PseudoMotorClass
(name)[source]¶ Bases:
sardana.tango.pool.PoolDevice.PoolElementDeviceClass
-
class_property_list
= {}¶
-
device_property_list
= {'Axis': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Axis in the controller', [0]], 'Ctrl_id': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Controller ID', [0]], 'DriftCorrection': [<_mock._Mock object at 0x7f9ba9cba8d0>, 'Locally apply drift correction on pseudo motors. Default is the current global drift correction in the Pool Device', None], 'Elements': [<_mock._Mock object at 0x7f9ba9cbae50>, 'elements used by the pseudo', []], 'Force_HW_Read': [<_mock._Mock object at 0x7f9ba9cba8d0>, 'Force a hardware read of value even when in operation (motion/acquisition', False], 'Id': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Internal ID', 0], 'Instrument_id': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Controller ID', [0]]}¶
-
cmd_list
= {'Abort': [[<_mock._Mock object at 0x7f9ba9cbaf50>, ''], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']], 'CalcAllPhysical': [[<_mock._Mock object at 0x7f9ba9cbac90>, 'pseudo positions'], [<_mock._Mock object at 0x7f9ba9cbac90>, 'physical positions']], 'CalcAllPseudo': [[<_mock._Mock object at 0x7f9ba9cbac90>, 'physical positions'], [<_mock._Mock object at 0x7f9ba9cbac90>, 'pseudo positions']], 'CalcPhysical': [[<_mock._Mock object at 0x7f9ba9cba910>, 'pseudo position'], [<_mock._Mock object at 0x7f9ba9cbac90>, 'physical positions']], 'CalcPseudo': [[<_mock._Mock object at 0x7f9ba9cbac90>, 'physical positions'], [<_mock._Mock object at 0x7f9ba9cba910>, 'pseudo position']], 'MoveRelative': [[<_mock._Mock object at 0x7f9ba9cba910>, 'amount to move'], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']], 'Restore': [[<_mock._Mock object at 0x7f9ba9cbaf50>, ''], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']], 'Stop': [[<_mock._Mock object at 0x7f9ba9cbaf50>, ''], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']]}¶
-
standard_attr_list
= {'Position': [[<_mock._Mock object at 0x7f9ba9cba910>, <_mock._Mock object at 0x7f9ba9cbb110>, <_mock._Mock object at 0x7f9ba9cbb0d0>], {'abs_change': '1.0', 'label': 'Position'}]}¶
-