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

Attributes look like h5py attributes when using the pyfive backend. #5

Open
davidhassell opened this issue Jan 21, 2025 · 0 comments · Fixed by #6
Open

Attributes look like h5py attributes when using the pyfive backend. #5

davidhassell opened this issue Jan 21, 2025 · 0 comments · Fixed by #6

Comments

@davidhassell
Copy link
Collaborator

davidhassell commented Jan 21, 2025

Attributes look like h5py attributes when using the pyfive backend.

Attributes look like h5netcdf attributes when using the pyfive backend.

Got output:

<class 'h5netcdf.attrs.Attributes'>
Conventions: b'CF-1.12'
numbers: array([5, 6])
number: np.array([4])  # Wrong
vector_of_strings: array(['a', 'bb'], dtype=object)  # Wrong

Expected Output

<class 'h5netcdf.attrs.Attributes'>
Conventions: b'CF-1.12'
numbers: array([5, 6])
number: 4  # Right
vector_of_strings: ['a', 'bb']  # Right

Anything else we need to know?:

PR to follow: #6

Version

"pyfive" branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant