lines.extend(_pformat_hdf5(value, depth))
elif isinstance(value, _h5py.Dataset):
lines.append(' '*depth + str(value))
- lines.append(' '*(depth+1) + str(value.value))
+ lines.append(' '*(depth+1) + str(value[...]))
else:
lines.append(' '*depth + str(value))
return lines
help_string = '\t(%s)' % settings[key].help()
else:
help_string = ''
- lines.append('%s: %s%s' % (key, value.value, help_string))
+ lines.append('%s: %s%s' % (key, value[...], help_string))
return '\n'.join(lines)
return super(_HDF5Config, self).dump(help=help)
for s in self.settings:
if s.name not in group.keys():
continue
- self[s.name] = s.convert_from_text(group[s.name].value)
+ self[s.name] = s.convert_from_text(group[s.name][...])
if f:
f.close()
else:
f = None
for s in self.settings:
- group[s.name] = s.convert_to_text(self[s.name])
+ try:
+ dataset = group[s.name]
+ except KeyError:
+ group[s.name] = s.convert_to_text(self[s.name])
+ else:
+ group[s.name][...] = s.convert_to_text(self[s.name])
if f:
f.close()