-
Notifications
You must be signed in to change notification settings - Fork 3
Windspharm module incompatible with analysis3 environment #85
Comments
Also: is the above a bot??? It appears so....... |
looks like it! hopefully this will stop it |
I noticed that the latest version of If someone has the capacity to submit a pull request to update and fix Windspharm, it might be possible to include it in the latest version of the "analysis3" environment. However, as it stands, it seems more practical to remove the package from the environment and I would personally recommend that users set up their own conda environment if they wish to use it. |
@rbeucher - windspharm has been fixed in the last few days and it has recently been updated in pip and conda-forge. So reinstalling the package in the analysis3 env should now fix the issue |
We updated unstable for other reasons just last night and it looks like the new version of windspharm was identified and installed then |
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?
The text was updated successfully, but these errors were encountered: