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

HDF5: Delete and re-create attribute when overwriting with diff. type #1697

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

franzpoeschel
Copy link
Contributor

Seen in a file that was originally create with h5py and the opened in R/W-mode with openPMD-api. Since h5py and openPMD-api apparently use different vec-string types, this leads to corrupted files.
Since we do support attributes with multiple possible types, the type of an existing attribute should be checked before reuse.

TODO:

  • Test

@franzpoeschel franzpoeschel force-pushed the fix-hdf5-overwrite-attribute-type branch from 6f937fb to f33f078 Compare November 19, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant