Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy 2.0 negative infinity backward compatibility broken #325

Open
markcoletti opened this issue Jul 9, 2024 · 0 comments
Open

numpy 2.0 negative infinity backward compatibility broken #325

markcoletti opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@markcoletti
Copy link
Collaborator

numpy has broken backward compatibility:

Traceback (most recent call last):
  File "/home/rkp/wicked-tuna/src/WickedMoo.py", line 18, in <module>
    class WickedMoo():
  File "/home/rkp/wicked-tuna/src/WickedMoo.py", line 132, in WickedMoo
    final_pop = steady_state_nsga_2(client, args.max_births,
  File "/home/rkp/miniforge3/lib/python3.10/site-packages/leap_ec/multiobjective/asynchronous.py", line 199, in steady_state_nsga_2
    return steady_state(
  File "/home/rkp/miniforge3/lib/python3.10/site-packages/leap_ec/distrib/asynchronous.py", line 207, in steady_state
    inserter(evaluated, pop, pop_size)
  File "/home/rkp/miniforge3/lib/python3.10/site-packages/leap_ec/multiobjective/asynchronous.py", line 140, in __call__
    per_rank_crowding_calc(lp, lp[0].problem.maximize)
  File "/home/rkp/miniforge3/lib/python3.10/site-packages/leap_ec/multiobjective/ops.py", line 186, in per_rank_crowding_calc
    f_max = np.full(num_objectives, np.NINF)
  File "/home/rkp/miniforge3/lib/python3.10/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.NINF` was removed in the NumPy 2.0 release. Use `-np.inf` instead.
@markcoletti markcoletti added the bug Something isn't working label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant