Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with paged chunk storage cannot be read #281

Open
jamesmudd opened this issue Jun 16, 2021 · 1 comment
Open

Files with paged chunk storage cannot be read #281

jamesmudd opened this issue Jun 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jamesmudd
Copy link
Owner

Describe the bug

Opening this file fails
chunked_v4_datasets.hdf5.zip

Additional context
Add any other context about the problem here, or possible solutions/workarounds.

@jamesmudd
Copy link
Owner Author

Generate test file

import h5py

import numpy as np

def write_chunked_datasets(f):

    data = np.arange(1024)
    f.create_dataset('1024', data=data, dtype='i4', chunks=(1,))
    f.create_dataset('1024_zip', data=data, dtype='i4', chunks=(1,), compression="gzip")

    data = np.arange(1025)
    f.create_dataset('1025', data=data, dtype='i4', chunks=(1,))
    f.create_dataset('1025_zip', data=data, dtype='i4', chunks=(1,), compression="gzip")

    f.flush()
    f.close()

if __name__ == '__main__':
    print('Making odd test files...')

    f = h5py.File('test_paging_latest.hdf5', 'w', libver='latest')
    write_chunked_datasets(f)
    print('created test_paging_latest.hdf5')

@jamesmudd jamesmudd added the bug Something isn't working label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant