Skip to content

Commit

Permalink
Use hkl_to_str for consistency
Browse files Browse the repository at this point in the history
Otherwise, we don't get the same string out.

This fixes an issue where HKLs that had more than one digit for a single
index would report an HKL ID of `-1`.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Jun 4, 2024
1 parent dc67471 commit aa135fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrdgui/reflections_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def update_table(self, only_if_visible=True):
# picks the exclusions by selecting the rows.
with exclusions_off(plane_data):
with tth_max_off(plane_data):
hkls = plane_data.getHKLs(asStr=True)
hkls = [hkl_to_str(x) for x in plane_data.getHKLs()]
d_spacings = plane_data.getPlaneSpacings()
tth = plane_data.getTTh()
powder_intensity = plane_data.powder_intensity
Expand Down

0 comments on commit aa135fe

Please sign in to comment.