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 load #662

Open
antonio-schettino opened this issue Jun 4, 2023 · 4 comments
Open

HDF5 load #662

antonio-schettino opened this issue Jun 4, 2023 · 4 comments

Comments

@antonio-schettino
Copy link

Hello, I am experiencing problems with saving and loading *.h5 files. If I run the following code:

m_handle = mesh.save("Numerical_Models/Mesh-RIFT-v62.h5")

The result is a h5 file having name 'Mesh-RIFT-v62.h5'. When I try to load the mesh, I obtain the following errors on Mac (Apple Silicon M1)
Screenshot 2023-06-04 alle 18 05 46

Conversely, everything works fine on Windows. Please can you help me?

@julesghub
Copy link
Member

Hi @antonio-schettino,
Thanks for the report.
What version of the code are you using?

I see in the latest version (2.14.1) there is an exception for the RuntimeError generated here.

except (RuntimeError, KeyError, UndefinedUnitError) as e:

If you are running an older version of Underworld can you update and try again.

@antonio-schettino
Copy link
Author

Hi Julien,

I thank you for your reply. I have updated UW to version 2.14.1b. The new error is shown below.
Screenshot 2023-06-07 alle 09 07 15

@julesghub
Copy link
Member

i notice now you're using HDF5-1.12.1. I believe this could be the issue - I tested UW with 1.12.1 a while back and decided to stick to HDF5-1.10.9 for the UW docker. (I think it was for this load() reason). Can you use HDF5-1.10.9 instead?

Can you also send the file "Numerical_Models/Mesh-RIFT-v62.h5" and I'll test it.

@antonio-schettino
Copy link
Author

I am using the Docker/Jupyter system, hence I don't figure out how to switch to an earlier version of the HDF library. I attach the saved mesh (zipped).
Mesh-RIFT-v62.h5.zip

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

No branches or pull requests

2 participants