Skip to content

Commit

Permalink
Fix numpy2.0 np.infty -> np.inf
Browse files Browse the repository at this point in the history
Fixes `AttributeError: `np.infty` was removed in the NumPy 2.0 release. Use `np.inf` instead.`
  • Loading branch information
dweindl committed Jun 16, 2024
1 parent 3fbb90b commit ccd1cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_preequilibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def preeq_fixture(pysb_example_presimulation_module):

edata_preeq = amici.ExpData(edata)
edata_preeq.t_presim = 0
edata_preeq.setTimepoints([np.infty])
edata_preeq.setTimepoints([np.inf])
edata_preeq.fixedParameters = edata.fixedParametersPreequilibration
edata_preeq.fixedParametersPresimulation = ()
edata_preeq.fixedParametersPreequilibration = ()
Expand Down

0 comments on commit ccd1cbc

Please sign in to comment.