better layout

This commit is contained in:
Martin Diehl 2019-10-20 11:34:05 +02:00
parent f00f6952c0
commit b593dfbfd9
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ class DADF5():
group = '/'.join([i,o[:-1],oo,pp]) # o[:-1]: plural/singular issue
for d in f[group].keys():
try:
message+=' {} ({})\n'.format(d,f['/'.join([group,d])].attrs['Description'].decode())
dataset = f['/'.join([group,d])]
message+=' {} / ({}): {}\n'.format(d,dataset.attrs['Unit'].decode(),dataset.attrs['Description'].decode())
except KeyError:
pass
return message