Bug #14559
closednumpy 1.20 deprecated numpy.bool data type
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.
Updated by Anchi Cheng over 1 year ago
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.
Updated by Anchi Cheng over 1 year ago
- 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.
Updated by Anchi Cheng 4 months ago
- Status changed from In Code Review to Closed
Done.
related to https://github.com/leginon-org/leginon/issues/21