From fa809509cdad6b8e4615fc43f252b7a6c4c57e07 Mon Sep 17 00:00:00 2001 From: x03daop Date: Mon, 2 Nov 2015 15:13:39 +0100 Subject: [PATCH] Script execution --- script/local.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index 737b29a7..ca3963a7 100644 --- a/script/local.py +++ b/script/local.py @@ -155,13 +155,15 @@ def print_diag(): print "%-25s %s" % (f.getName() , str(f.read())) def create_diag_datasets(): - group = get_current_group() + "/attrs/" + group = get_current_group() + "attrs/" print group for f in diag_channels: + print group+f.getName() + print ('s' if (type(f) is ch.psi.pshell.epics.ChannelString) else 'i') create_dataset(group+f.getName() , 's' if (type(f) is ch.psi.pshell.epics.ChannelString) else 'i') def append_diag_datasets(): - group = get_current_group() + "/attrs/" + group = get_current_group() + "attrs/" for f in diag_channels: append_dataset(group+f.getName(), f.take())