Skip to content

Commit

Permalink
pytest: ignore log(0) warnings (#2448)
Browse files Browse the repository at this point in the history
The warning/error in #2444 is caused by `petab.parameters.scale()`.
Whether this warning should be suppressed there or not is to discussed in the PEtab context.
For amici, I'd say we're fine with just accepting `np.log(0) == -inf` without a warning.

Closes #2444.
  • Loading branch information
dweindl committed May 15, 2024
1 parent a63b016 commit e03f829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ filterwarnings =
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
ignore:.*:ImportWarning:tellurium
ignore:.*PyDevIPCompleter6.*:DeprecationWarning
# ignore numpy log(0) warnings (np.log(0) = -inf)
ignore:divide by zero encountered in log:RuntimeWarning

norecursedirs = .git amici_models build doc documentation matlab models ThirdParty amici sdist examples

0 comments on commit e03f829

Please sign in to comment.