From aa135fe425ae10a9911c21a4db79195e7dabad9c Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Tue, 4 Jun 2024 09:05:44 -0500 Subject: [PATCH] Use `hkl_to_str` for consistency 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 --- hexrdgui/reflections_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrdgui/reflections_table.py b/hexrdgui/reflections_table.py index 9f28ebabd..39ca0e50c 100644 --- a/hexrdgui/reflections_table.py +++ b/hexrdgui/reflections_table.py @@ -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