From f6849f7eb0ee66f5e9ea275adf76b41bdf40a8b9 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Fri, 25 May 2018 10:13:45 +0200 Subject: [PATCH] Script execution --- script/local.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/local.py b/script/local.py index 4a3eb89b..260aa0bb 100644 --- a/script/local.py +++ b/script/local.py @@ -295,9 +295,10 @@ def before_readout(): fetch_keithleys() def after_readout(rec): - if beam_ok: - if get_exec_pars().persist: - if rec.index == 0: + if beam_ok: + if get_exec_pars().save: + print rec.index + if rec.index == 0: create_diag_datasets() append_diag_datasets() else: