EMS-TU-Ilmenau / fastmat

A library to build up lazily evaluated expressions of linear transforms for efficient scientific computing.
https://fastmat.readthedocs.io
Apache License 2.0
24 stars 8 forks source link

Numpy bool deprecation warning #93

Closed ChristophWWagner closed 1 year ago

ChristophWWagner commented 3 years ago

In a recent numpy version 1.20.1, a deprecation warning for the use of numpy.bool is issued:

/fastmat/bee.py:665: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool`
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

How should this be handled?

ChristophWWagner commented 1 year ago

In numpy 1.24 the deprecation took place, currently rendering fastmat inoperable with this numpy version. Urgent fix is advised.