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')