Script execution

This commit is contained in:
gac-x04sa
2018-10-30 14:26:12 +01:00
parent 5a14c19d90
commit 5340d6245a

View File

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