diff --git a/script/local.py b/script/local.py index ee879c5e..503fa86f 100644 --- a/script/local.py +++ b/script/local.py @@ -323,11 +323,11 @@ def before_readout(): """ def after_readout(rec, scan): - print scan.index if beam_ok: if get_exec_pars().save: - if rec.index == 0: - create_metadata_datasets() + if rec.index == 0: + if scan.index == 1: + create_metadata_datasets() create_diag_datasets() append_diag_datasets() else: