Skip to content

Commit

Permalink
MNT #215 remap the names if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Oct 17, 2023
1 parent 816345c commit 3bdf537
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hkl/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ def restore_reflections(orientation, diffractometer):
pseudos = orientation["_pseudos"]
reals = orientation["_reals"]
orientation_reflections = []
# might be renamed axes
renaming = diffractometer.calc._axis_name_to_original
if len(renaming) > 0:
reals = [renaming[k] for k in reals]

for ref_base in orientation["reflections_details"]:
# every reflection has its own wavelength
Expand Down

0 comments on commit 3bdf537

Please sign in to comment.