mxcubecore.HardwareObjects.BlissEnergy#
Energy and Wavelength with bliss. Example xml file:
for tunable wavelength beamline:
- <object class=”Energy”>
<object href=”/energy” role=”energy_motor”/> <object href=”/bliss” role=”bliss”/>
</object> The energy should have methods get_value, get_limits, get_state and move. If used, the controller should have method moveEnergy.
for fixed wavelength beamline:
- <object class=”Energy”>
<read_only>True</read_only> <energy>12.8123</energy> or <object href=”/energy” role=”energy_motor”/>
The energy should have methods get_value and get_state </object>
Classes
|
Energy and Wavelength with bliss. |
- class mxcubecore.HardwareObjects.BlissEnergy.BlissEnergy(name)[source]#
Bases:
AbstractEnergy
Energy and Wavelength with bliss.
- get_limits()[source]#
Return energy low and high limits. :returns: two floats tuple (low limit, high limit) [keV]. :rtype: (tuple)
- set_value(value, timeout=0)[source]#
Move energy to absolute position. Wait the move to finish. :param value: target value. :type value: float :param timeout: optional - timeout [s],
If timeout == 0: return at once and do not wait if timeout is None: wait forever.
- Raises:
ValueError – Value not valid or attemp to set write only actuator.