NLeSC / noodles

Computational workflow engine, making distributed computing in Python easy!
http://nlesc.github.io/noodles
Apache License 2.0
21 stars 7 forks source link

add explicit h5py File mode #83

Closed felipeZ closed 3 years ago

felipeZ commented 3 years ago

The issue

In noodles/serial/numpy module:

noodles/serial/numpy.py:83: H5pyDeprecationWarning: The default file mode will change to 'r' (read-only) in h5py 3.0. To suppress this wa
rning, pass the mode you need to h5py.File(), or set the global default h5.get_config().default_file_mode, or set the environment variable H5PY_DEFAULT_READONLY=1. Available modes are: 'r', 'r+', 'w', 'w
-'/'x', 'a'. See the docs for details.            

Solution

Add explicity the file mode to use