idptools / parrot

Python package for protein sequence-based bidirectional recurrent neural network. Generalizable to a variety of protein bioinformatic applications.
MIT License
16 stars 2 forks source link

module 'numpy' has no attribute 'bool'. #12

Closed jourmore closed 1 week ago

jourmore commented 8 months ago

module 'numpy' has no attribute 'bool'. np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, 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. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

alexholehouse commented 8 months ago

I don't disagree, and it's totally possible we have this issue in the codebase, but a quick search of the src does not find any hits for np.bool; could you maybe elaborate on where this occurs and how it emerged as an issue in your work?

jlotthammer commented 1 week ago

feel free to reopen with more information if you're still facing issues