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 0x7fc23ece7190>, 'Axis in the controller', [0]], 'Ctrl_id': [<_mock._Mock object at 0x7fc23ece7190>, 'Controller ID', [0]], 'DriftCorrection': [<_mock._Mock object at 0x7fc23ece6fd0>, 'Locally apply drift correction on pseudo motors. Default is the current global drift correction in the Pool Device', None], 'Elements': [<_mock._Mock object at 0x7fc23ece7590>, 'elements used by the pseudo', []], 'Force_HW_Read': [<_mock._Mock object at 0x7fc23ece6fd0>, 'Force a hardware read of value even when in operation (motion/acquisition', False], 'Id': [<_mock._Mock object at 0x7fc23ece7190>, 'Internal ID', 0], 'Instrument_id': [<_mock._Mock object at 0x7fc23ece7190>, 'Controller ID', [0]]}¶
-
cmd_list= {'Abort': [[<_mock._Mock object at 0x7fc23ece7690>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'CalcAllPhysical': [[<_mock._Mock object at 0x7fc23ece73d0>, 'pseudo positions'], [<_mock._Mock object at 0x7fc23ece73d0>, 'physical positions']], 'CalcAllPseudo': [[<_mock._Mock object at 0x7fc23ece73d0>, 'physical positions'], [<_mock._Mock object at 0x7fc23ece73d0>, 'pseudo positions']], 'CalcPhysical': [[<_mock._Mock object at 0x7fc23ece7050>, 'pseudo position'], [<_mock._Mock object at 0x7fc23ece73d0>, 'physical positions']], 'CalcPseudo': [[<_mock._Mock object at 0x7fc23ece73d0>, 'physical positions'], [<_mock._Mock object at 0x7fc23ece7050>, 'pseudo position']], 'MoveRelative': [[<_mock._Mock object at 0x7fc23ece7050>, 'amount to move'], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'Restore': [[<_mock._Mock object at 0x7fc23ece7690>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'Stop': [[<_mock._Mock object at 0x7fc23ece7690>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']]}¶
-
standard_attr_list= {'Position': [[<_mock._Mock object at 0x7fc23ece7050>, <_mock._Mock object at 0x7fc23ece7810>, <_mock._Mock object at 0x7fc23ece77d0>], {'abs_change': '1.0', 'label': 'Position'}]}¶
-