From 5340d6245ae3bfd03e5e28fd30cf0be42c403a8f Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 30 Oct 2018 14:26:12 +0100 Subject: [PATCH] Script execution --- script/local.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index 1f56408..63648de 100644 --- a/script/local.py +++ b/script/local.py @@ -87,8 +87,11 @@ def trigger_detectors(position, scan): def save_metadata(rec): + print "1" if get_exec_pars().persist: + print "2" if rec.index == 0: + print "3" create_diag_datasets() append_diag_datasets() @@ -141,11 +144,9 @@ def print_diag(): print "%-25s %s" % (get_diag_name(f) , str(f.read())) def create_diag_datasets(parent = None): - print "Creating ", parent if parent is None: parent = get_exec_pars().group group = parent + "meta/" - print "Creating ", group for f in diag_channels: create_dataset(group+get_diag_name(f) , 's' if (type(f) is ch.psi.pshell.epics.ChannelString) else 'd')