From bf21c0430453c0afe9945432dbb44d42adbfaaf4 Mon Sep 17 00:00:00 2001 From: x03daop Date: Mon, 2 Nov 2015 17:10:07 +0100 Subject: [PATCH] Script execution --- script/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index e22d986a..9ec7cde7 100644 --- a/script/local.py +++ b/script/local.py @@ -170,9 +170,9 @@ def append_diag_datasets(): SAVE_DIAGS = True -def AfterReadout(rec): +def AfterReadout(rec = None): if SAVE_DIAGS: - if rec.index == 0: + if (rec is None) or (rec.index == 0): create_diag_datasets() append_diag_datasets()