-
Notifications
You must be signed in to change notification settings - Fork 49
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 reading for unyt.quantity. #559
Labels
bug
Something isn't working
Comments
Can you provide a self-contained reproducer script ? |
Hi yes, here is a simple script that for me reproduces the issue import unyt
variable_quantity = 5*unyt.cm
variable_quantity.write_hdf5("example.hdf5",dataset_name="variable", group_name="example_quantity")
in_quantity = unyt.unyt_quantity.from_hdf5("example.hdf5",dataset_name="variable", group_name="example_quantity") |
Thank you for reporting this. I opened a fix at #560 |
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Feb 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi I believe that there is a bug whenever I try to read a
unyt.unyt_quantity
that was stored in a hdf5 file usingwrite_hdf5
. Basically I think it treats the quantity as a non-zero dimensional array, and uses ellipses to get the data. I have tried to useunyt.unyt_quantity.from_hdf5()
andunyt.unyt_array.from_hdf5()
.The text was updated successfully, but these errors were encountered: