Reputation: 5450
I want to get the root group object of the h5 file and add attributes to it, instead of creating a new subgroup like what I have now:
f = h5py.File("test.h5", "w")
grp = f.create_group("group1")
grp.attrs['att'] = 0
Upvotes: 0
Views: 1133