I have come across the following error on the conda analysis3 environment while using the tool “windspharm” which is installed in the analysis3 conda environment:
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04/lib/python3.10/site-packages/windspharm/xarray.py”, line 101, in init
u = to3d(u.values)
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04/lib/python3.10/site-packages/windspharm/_common.py”, line 119, in to3d
new_shape = array.shape[:2] + (np.prod(array.shape[2:], dtype=np.int),)
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04/lib/python3.10/site-packages/numpy/init.py”, line 324, in getattr
raise AttributeError(__former_attrs__[attr])
AttributeError: module ‘numpy’ has no attribute ‘int’.
[np.int](http://np.int/) was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing [np.int](http://np.int/), you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: ‘inf’?
It appears as if numpy have changed the way they read in "ints" which windspharm has not yet changed. I have changed to using analysis3-24.01 and all appears good there so must be a pretty recent thing. Could you pease assist?
I have come across the following error on the conda analysis3 environment while using the tool “windspharm” which is installed in the analysis3 conda environment:
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04/lib/python3.10/site-packages/windspharm/xarray.py”, line 101, in init u = to3d(u.values) File “/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04/lib/python3.10/site-packages/windspharm/_common.py”, line 119, in to3d new_shape = array.shape[:2] + (np.prod(array.shape[2:], dtype=np.int),) File “/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04/lib/python3.10/site-packages/numpy/init.py”, line 324, in getattr raise AttributeError(__former_attrs__[attr]) AttributeError: module ‘numpy’ has no attribute ‘int’.
[np.int](http://np.int/)
was a deprecated alias for the builtinint
. To avoid this error in existing code, useint
by itself. Doing this will not modify any behavior and is safe. When replacing[np.int](http://np.int/)
, you may wish to use e.g.np.int64
ornp.int32
to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: ‘inf’?It appears as if numpy have changed the way they read in "ints" which windspharm has not yet changed. I have changed to using analysis3-24.01 and all appears good there so must be a pretty recent thing. Could you pease assist?