Skip to content

Commit

Permalink
Merge branch 'develop' into fix_jax_test
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl authored Nov 26, 2024
2 parents 25aa00e + b210b01 commit b8bce77
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test_valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,9 @@ jobs:
- name: Install python package
run: scripts/installAmiciSource.sh

- name: Remove jax
# avoid valgrind errors due to jax et al.
run: venv/bin/pip uninstall -y jax

- name: Python tests / Valgrind
run: scripts/run-valgrind-py.sh
4 changes: 3 additions & 1 deletion python/tests/test_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from beartype import beartype

from amici.pysb_import import pysb2amici
from amici.testing import TemporaryDirectoryWinSafe
from amici.testing import TemporaryDirectoryWinSafe, skip_on_valgrind
from numpy.testing import assert_allclose

pysb = pytest.importorskip("pysb")
Expand All @@ -23,6 +23,7 @@
RTOL_SIM = 1e-12


@skip_on_valgrind
def test_conversion():
pysb.SelfExporter.cleanup() # reset pysb
pysb.SelfExporter.do_export = True
Expand All @@ -46,6 +47,7 @@ def test_conversion():
_test_model(model_module, ts, p, k)


@skip_on_valgrind
@pytest.mark.filterwarnings(
"ignore:Model does not contain any initial conditions"
)
Expand Down
9 changes: 9 additions & 0 deletions python/tests/valgrind-python.supp
Original file line number Diff line number Diff line change
Expand Up @@ -985,3 +985,12 @@
fun:_PyTuple_Resize
...
}

{
Python
Memcheck:Cond
fun:PyObject_RichCompareBool
fun:tuplerichcompare
fun:do_richcompare
...
}

0 comments on commit b8bce77

Please sign in to comment.