datacollection.from_hdf5 and .to_hdf5