From b56235aadd547f08b74abddb496c83e348fc0cd9 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 1 Jul 2024 17:23:33 +0200 Subject: [PATCH] .. --- pytest.ini | 2 ++ python/tests/splines_utils.py | 4 ++-- tests/benchmark-models/test_petab_benchmark.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pytest.ini b/pytest.ini index 9c2da85f82..adbf313922 100644 --- a/pytest.ini +++ b/pytest.ini @@ -5,6 +5,8 @@ addopts = -vv --strict-markers filterwarnings = # warnings are errors error + # petab + ignore:Using petab.v1.Problem with PEtab2.0 is deprecated:DeprecationWarning # amici ignore:Conservation laws for non-constant species in models with RateRules are currently not supported and will be turned off.:UserWarning ignore:Conservation laws for non-constant species in models with Species-AssignmentRules are currently not supported and will be turned off.:UserWarning diff --git a/python/tests/splines_utils.py b/python/tests/splines_utils.py index 19fd84eee6..8aac6edfe3 100644 --- a/python/tests/splines_utils.py +++ b/python/tests/splines_utils.py @@ -15,7 +15,7 @@ import amici import numpy as np import pandas as pd -import petab +import petab.v1 as petab import sympy as sp from amici.gradient_check import _check_results from amici.petab.petab_import import import_petab_problem @@ -31,7 +31,7 @@ ) from amici.splines import AbstractSpline, CubicHermiteSpline, UniformGrid from amici.testing import TemporaryDirectoryWinSafe as TemporaryDirectory -from petab.models.sbml_model import SbmlModel +from petab.v1.models.sbml_model import SbmlModel def evaluate_spline( diff --git a/tests/benchmark-models/test_petab_benchmark.py b/tests/benchmark-models/test_petab_benchmark.py index 47bf503984..d0e2a6d46a 100644 --- a/tests/benchmark-models/test_petab_benchmark.py +++ b/tests/benchmark-models/test_petab_benchmark.py @@ -6,7 +6,7 @@ import amici import numpy as np import pandas as pd -import petab +import petab.v1 as petab import pytest from amici.petab.petab_import import import_petab_problem