Closed prjemian closed 1 year ago
Need to store this remap with the other orientation information so it will be available for later use, such as:
orientation = run_orientation_info(cat[63])["fourc"]
Confirmed the reflections are stored in the databroker by their canonical names rather than the local renames. The hkl.util.restore_reflections()
code appears to use the local renames. The local renames are available in orientation["_reals"]
.
This dictionary: https://github.com/bluesky/hklpy/blob/dd2cf5a0d32e73f04d8ec5a223faff7e6f9593a2/hkl/calc.py#L198 is empty if the axes are not renamed. If there are renames, the dict provides the mapping.
It's an all-or-nothing proposition; if the dict is empty, then no renames, otherwise, the dict has conversions for all the names.
As reported by @gfabbris,
restore_reflections(orientation, fourc)
could not findtheta
in the reflection dict:when the positioners were renamed such as