Keep all merged scans, but disable export for them

This commit is contained in:
2021-02-12 13:53:51 +01:00
parent d5ac2c6d56
commit b63ef90e11
2 changed files with 5 additions and 3 deletions

View File

@ -89,12 +89,13 @@ def create():
def _init_datatable():
scan_list = [s["idx"] for s in det_data]
hkl = [f'{s["h"]} {s["k"]} {s["l"]}' for s in det_data]
export = [s.get("active", True) for s in det_data]
scan_table_source.data.update(
scan=scan_list,
hkl=hkl,
peaks=[0] * len(scan_list),
fit=[0] * len(scan_list),
export=[True] * len(scan_list),
export=export,
)
scan_table_source.selected.indices = []
scan_table_source.selected.indices = [0]