Skip to content

gwinc uses np.Inf, which was removed in numpy 2.0

Traceback (most recent call last):
  File "/builds/voyager/voyagergwinc/qopt.py", line 396, in <module>
    write_design(design, f"Voyager_{design.fom_type}")
  File "/builds/voyager/voyagergwinc/qopt.py", line 362, in write_design
    f.write(design.budget.ifo.to_txt())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builds/voyager/voyagergwinc/venv/lib/python3.12/site-packages/gwinc/struct.py", line 438, in to_txt
    max_line_width=np.Inf,
                   ^^^^^^
  File "/builds/voyager/voyagergwinc/venv/lib/python3.12/site-packages/numpy/__init__.py", line 400, in __getattr__
    raise AttributeError(
AttributeError: `np.Inf` was removed in the NumPy 2.0 release. Use `np.inf` instead.