IMTEK-Simulation / NuMPI

Utilities for MPI-parallel numerical calculations with Python
MIT License
2 stars 1 forks source link

netCDF4 1.5.3 uses deprecated numpy API #43

Closed sannant closed 3 years ago

sannant commented 3 years ago

We should switch to netCDF=1.5.6.

Otherwise we get warnings of type when using newer numpy version

DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
sannant commented 3 years ago

@pastewka any reason why you fixed the version to 1.5.3 ?

pastewka commented 3 years ago

I think later version don't compile... feel free to try

pastewka commented 3 years ago

Let me correct this: 1.5.5.1 should work, not sure if 1.5.6 works

sannant commented 3 years ago

Ok. On my mac 1.6 worked