coecms / cms-conda-singularity

A repository for the squashfs'd hh5 conda installations.
Apache License 2.0
1 stars 3 forks source link

Windspharm module incompatible with analysis3 environment #85

Open weathermanbarnes opened 2 months ago

weathermanbarnes commented 2 months ago

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?

weathermanbarnes commented 2 months ago

Also: is the above a bot??? It appears so.......

paolap commented 2 months ago

looks like it! hopefully this will stop it