Closed stephtdouglas closed 4 years ago
OK new quick fix for you in master :)
This now works:
with h5py.File('/tmp/test.hdf5', 'w') as f:
g = f.create_group('test')
samples.write(g)
with h5py.File('/tmp/test.hdf5', 'r') as f:
samples1 = JokerSamples.read(f['test'])
samples2 = JokerSamples.read('/tmp/test.hdf5', path='test/samples')
Try it for your code?
Yep, looks like that worked!
Now that I have successfully written out my samples to an h5py file, I can't read them back in again. I think it's coming from a disconnect between the JokerSamples.read() method and JokerSamples._read_tables() method. I can only give .read() it a filename, but _read_tables() wants a group and a path, and the default path is 'samples'. So the resulting error traceback is