Bug #14559
closed
numpy 1.20 deprecated numpy.bool data type
Added by Anchi Cheng over 1 year ago.
Updated 3 months ago.
Affected Version:
Appion/Leginon 4.0
Description
There may be multiple places affected. I found this in pyami/mrc.py
For now, restrict matplotlib version to 3.6 can avoid this.
Looks like not many files contained numpy.bool and numpy 1.6 which is on python 2.6 already has numpy.bool_ as data type. I change the codes that uses numpy.bool to numpy.bool_.
There are other deprecated numpy types such as unspecified numpy.int in myami that need to be resolved before we can use numpy 1.20 and above.
- Project changed from Appion to Leginon
- Status changed from New to In Code Review
- Assignee set to cesar mena
- Target version set to Appion/Leginon 3.7
Added also changes to numpy.int, numpy.float, numpy.complex. Except the ones that I can fairly guessed the length, I left them platform defined.
Tested with myami-python3
Cesar, if you have time please take a look to see if my assignments look o.k.
- Status changed from In Code Review to Closed
Also available in: Atom
PDF