Fix real indices display and export
This commit is contained in:
parent
c602a3df2e
commit
0d8a30b995
@ -86,6 +86,8 @@ def create():
|
|||||||
scan_list = list(det_data["scan"].keys())
|
scan_list = list(det_data["scan"].keys())
|
||||||
hkl = [
|
hkl = [
|
||||||
f'{int(m["h_index"])} {int(m["k_index"])} {int(m["l_index"])}'
|
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()
|
for m in det_data["scan"].values()
|
||||||
]
|
]
|
||||||
scan_table_source.data.update(
|
scan_table_source.data.update(
|
||||||
|
@ -247,7 +247,7 @@ def export_comm(data, path, lorentz=False):
|
|||||||
if data["meta"]["indices"] == "hkl":
|
if data["meta"]["indices"] == "hkl":
|
||||||
hkl_str = f"{int(h):6}{int(k):6}{int(l):6}"
|
hkl_str = f"{int(h):6}{int(k):6}{int(l):6}"
|
||||||
else: # data["meta"]["indices"] == "real"
|
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_method = data["meta"]["area_method"]
|
||||||
area_n = scan["fit"][area_method].n
|
area_n = scan["fit"][area_method].n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user