Skip to content

Commit

Permalink
fix petab version
Browse files Browse the repository at this point in the history
  • Loading branch information
arrjon committed Oct 24, 2024
1 parent ce65b28 commit 0302a2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions pyabc/petab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,16 @@
Problem definitions in the PEtab format (https://petab.rtfd.io).
"""
import warnings

from .amici import AmiciPetabImporter

try:
import petab
except ImportError:
warnings.warn(
"PEtab import requires an installation of petab "
"(https://github.com/PEtab-dev/PEtab). "
"Install via `pip3 install petab`.",
stacklevel=1,
)
4 changes: 1 addition & 3 deletions test/petab/test_petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@


@pytest.fixture(
params=itertools.product(
[petab.C.LIN, petab.C.LOG, petab.C.LOG10], [*petab.C.PRIOR_TYPES, None]
)
params=itertools.product([C.LIN, C.LOG, C.LOG10], [*C.PRIOR_TYPES, None])
)
def prior_specs(request):
"""A one-line parameter df for a given prior type."""
Expand Down

0 comments on commit 0302a2d

Please sign in to comment.