diff --git a/pyzebra/app/panel_ccl_integrate.py b/pyzebra/app/panel_ccl_integrate.py index 483f582..fc775c2 100644 --- a/pyzebra/app/panel_ccl_integrate.py +++ b/pyzebra/app/panel_ccl_integrate.py @@ -86,6 +86,8 @@ def create(): scan_list = list(det_data["scan"].keys()) hkl = [ f'{int(m["h_index"])} {int(m["k_index"])} {int(m["l_index"])}' + if det_data["meta"]["indices"] == "hkl" + else f'{m["h_index"]} {m["k_index"]} {m["l_index"]}' for m in det_data["scan"].values() ] scan_table_source.data.update( diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index 5b9a906..c09de0e 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -247,7 +247,7 @@ def export_comm(data, path, lorentz=False): if data["meta"]["indices"] == "hkl": hkl_str = f"{int(h):6}{int(k):6}{int(l):6}" else: # data["meta"]["indices"] == "real" - hkl_str = f"{h:6.2f}{k:6.2f}{l:6.2f}" + hkl_str = f"{h:8.4g}{k:8.4g}{l:8.4g}" area_method = data["meta"]["area_method"] area_n = scan["fit"][area_method].n