bluesky / hklpy

Diffractometer computation library with ophyd pseudopositioner support
https://blueskyproject.io/hklpy
BSD 3-Clause "New" or "Revised" License
2 stars 11 forks source link

BUG: restore(configuration) should push constraints to stack #301

Closed prjemian closed 6 months ago

prjemian commented 7 months ago

The DiffractometerConfiguration.restore() method should push (apply_constraints()) to the existing stack instead of replacing the stack entirely. This preserves undo_last_constraints() and reset_constraints().

prjemian commented 7 months ago

Here: https://github.com/bluesky/hklpy/blob/7ea4e5cc7c4bfc3a8036bf0dc294750f124fe10b/hkl/configuration.py#L462