Skip to content

[BUG]: ptp was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead. #177

@sin3000x

Description

@sin3000x

Description of the bug

Occurs at optimizer.py, line 625:if list_fitness.ptp() == 0:

Steps To Reproduce

  1. pip install package, and numpy resolves to 2.0.x
  2. solve any problem with model = ACOR.OriginalACOR()

Additional Information

I'm using Python 3.9 and packages:

certifi==2024.12.14
charset-normalizer==3.4.1
contourpy==1.3.0
cycler==0.12.1
fonttools==4.55.3
idna==3.10
importlib_resources==6.5.2
kiwisolver==1.4.7
matplotlib==3.9.4
mealpy==3.0.1
numpy==2.0.2
opfunu==1.0.4
packaging==24.2
pandas==2.2.3
pillow==11.1.0
pyparsing==3.2.1
python-dateutil==2.9.0.post0
pytz==2024.2
requests==2.32.3
scipy==1.13.1
six==1.17.0
tzdata==2024.2
urllib3==2.3.0
zipp==3.21.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions