Script execution

This commit is contained in:
x03daop
2015-11-02 15:19:12 +01:00
parent ed69c4f6e3
commit 690dd866d9
+5 -5
View File
@@ -158,14 +158,14 @@ def create_diag_datasets():
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')
print "OK"
print "QUIT"
def append_diag_datasets():
group = get_current_group() + "attrs/"
for f in diag_channels:
append_dataset(group+f.getName(), f.take())
x = f.take()
if x is None:
x = '' if (type(f) is ch.psi.pshell.epics.ChannelString) else float('nan')
append_dataset(group+f.getName(), x)