Since NumPy 1.20, the use of np.bool was deprecated, and in 1.24, it was removed. While it is going to return in the future, currently an error occurs when np.bool is used with NumPy 1.24 to 1.26 (current latest version).
This PR changes it to np.bool_ which should work on new and older versions.
Since NumPy 1.20, the use of
np.bool
was deprecated, and in 1.24, it was removed. While it is going to return in the future, currently an error occurs whennp.bool
is used with NumPy 1.24 to 1.26 (current latest version). This PR changes it tonp.bool_
which should work on new and older versions.