From e03f82970a51d30cfe2b42eeed5d5125fe7f2d05 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 15 May 2024 18:26:45 +0200 Subject: [PATCH] pytest: ignore log(0) warnings (#2448) 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. --- pytest.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest.ini b/pytest.ini index 3868c80b1e..4f682576a3 100644 --- a/pytest.ini +++ b/pytest.ini @@ -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