Closedown

This commit is contained in:
x03daop
2017-11-01 12:32:30 +01:00
parent d413f56e1c
commit dc0f074a65

View File

@@ -214,10 +214,13 @@ def append_diag_datasets(parent = None):
parent = get_exec_pars().group
group = parent + "attrs/"
for f in diag_channels:
x = f.read()
if x is None:
x = '' if (type(f) is ch.psi.pshell.epics.ChannelString) else float('nan')
append_dataset(group+get_diag_name(f), x)
try:
x = f.read()
if x is None:
x = '' if (type(f) is ch.psi.pshell.epics.ChannelString) else float('nan')
append_dataset(group+get_diag_name(f), x)
except:
log("Error sampling " + str(get_diag_name(f)) + ": " + str(sys.exc_info()[1]))
def wait_beam():