Open TheChymera opened 11 months ago
I just ran into a large list of warnings as well.
Appears to be a few deprecations in Numpy v1.24:
np.str
, np.int
etcnp.str0
, np.bool8
Is it a question of np.bool8 being deprecated in favour of np.bool_
From what I can gather, numpy's dtype
needs something not built-in internally, so that's what np.bool_
is for. From a user's point of view, I think we're supposed to be just using bool
.
Some enlightening code:
>>> import numpy as np
np>>> np.bool
<type 'bool'>
>>> np.bool is bool
True
>>> np.bool_ is bool
False
>>> np.ones(2, dtype=bool).dtype
dtype('bool')
>>> np.ones(2, dtype=np.bool_).dtype
dtype('bool')
Full build log: https://ppb.chymera.eu/2facbc.log
Example excerpt of failure:
Any ideas what's wrong here? Is it a question of
np.bool8
being deprecated in favour ofnp.bool_
?Apparently the package already uses both 🤔: