wrf-python
wrf-python copied to clipboard
Remove np.float_ as a fill option
Running with NumPy 2.2.2 produces the following error:
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
This removes the unsupported type.
Thanks for catching this!
I think we may want to make this dependent upon the NumPy version, but can take care of that.
Is your suggestion that they should add the following, on line 65 or so?
try:
_DEFAULT_FILL_MAP[np.dtype(np.float_)] = Constants.DEFAULT_FILL_DOUBLE
except AttributeError:
pass
Yeah, and sorry for the delay on this.
I was hoping to get this quickly merged a while back, but ran into some diffs in testing it from what I'm now fairly confident is type promotion changes with NumPy 2.0.
I have a bit of time this week and was hoping to track down what needs to be changed.