Project

General

Profile

Actions

Bug #14559

open

numpy 1.20 deprecated numpy.bool data type

Added by Anchi Cheng about 1 year ago. Updated about 1 year ago.

Status:
In Code Review
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/29/2023
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 4.0
Show in known bugs:
No
Workaround:

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.

Actions #1

Updated by Anchi Cheng about 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.

Actions #2

Updated by Anchi Cheng about 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.

Actions

Also available in: Atom PDF