Set energy to preselect

Warning

STATUS: STUB. Placeholder for the procedure that satisfies the precondition energy_configured of Detector Z-rail alignment to the beam (detector_z_rail_alignment). To be fleshed out as the procedure is implemented.

Name

set_energy_to_preselect

Source

Not yet implemented in this repository. Future location: procedures/set_energy_to_preselect.py in the 2bm-procedures repository. Likely a thin wrapper around the energy package, which already implements the coordinated DMM + mirror energy change.

Devices

Preconditions

Parameters

  • energy_keV (number > 0) — target energy. Default for detector_z_rail_alignment: TBD (whichever preselect the experiment is running on).

Steps

  • TBD. Delegate to the energy package (energy.change_energy(keV)); wait for mirror + DMM motors to settle.

Postconditions

Satisfies:

energy_configured

Predicate:

Mirror M1 and DMM RBVs match the energy-dependent lookup tables in the energy package (predicate is energy-parameterised — needs current energy as input).

Failure modes

  • TBD.