statisticalbiotechnology / diffacto

Other
13 stars 8 forks source link

Fix dtype spec for compatibility with latest numpy versions #28

Closed levitsky closed 7 months ago

levitsky commented 7 months ago

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.