Presets#

Presets define values for the constant real axes the Solver uses during a forward() computation.

Some diffractometer modes hold one or more real axes at a fixed value while the solver computes the remaining axes needed to reach a requested \(hkl\) position. A preset supplies the value the solver assumes for such a constant axis — it does not move any motor.

Tip

Presets act before the solver computes solutions. If you want to narrow which solutions are accepted after computation, use Constraints instead.

Each mode stores its own independent preset dictionary, defaulting to {}. Switching modes switches to that mode’s presets.

See also

Constraints — filter forward() solutions after computation.

How to Use Presets — step-by-step guide to setting and clearing presets.

Glossary — definition of preset.