id4_common.devices.energy_device#

Beamline energy

Module Contents#

id4_common.devices.energy_device.logger#
class id4_common.devices.energy_device.EnergySignal(*args, mono_name='mono', feedback_name='mono_feedback', feedback_tolerance=0.1, **kwargs)#

Bases: ophyd.Signal

Beamline energy. The monochromator defines the beamline energy.

property mono#

Return the monochromator device, resolving from registry on first access.

property trackable_devices#

Return all track_energy-labelled devices plus any manually added extra devices.

property extra_devices#

Return the list of manually added trackable devices.

property tracking#

Print a table of all trackable devices and their current tracking state.

tracking_setup(devices_names: collections.abc.Iterable = [])#

Enable tracking for the named devices, or prompt interactively if names are empty.

property position#

Return the current monochromator energy position.

property limits#

Return the monochromator energy soft limits.

property feedback_device#

Return the monochromator feedback device from the registry, or None if absent.

get(**kwargs)#

Uses the mono as the standard beamline energy.

set(position, *, wait=False, timeout=None, settle_time=None, moved_cb=None)#

Move mono and all tracking devices to position (keV); disable feedback during the move.

stop(*, success=False)#

Stops only energy devices that are tracking.

default_settings()#

Resolve and cache the monochromator device from the registry.