Skip to content

Commit

Permalink
MNT: fix error when using numpy 2+
Browse files Browse the repository at this point in the history
If you specify python 3.10+ in the conda install,
numpy will then be installed with the latest version 2.20.

Updated numpy has removed np.compat.long, which was for compatibility with
python 2's 'long' variable, and we don't support python 2.
('long' is replaced with the just an expanded 'int' in python 3).
  • Loading branch information
nstelter-slac committed Dec 17, 2024
1 parent 13200f5 commit e42df7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydm/data_plugins/epics_plugins/pva_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
np.int8,
np.int16,
np.int32,
np.compat.long,
np.int64, # same as np.long
np.uint8,
np.uint16,
np.uint32,
Expand Down

0 comments on commit e42df7c

Please sign in to comment.