Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jul 2, 2024
1 parent 5cca99f commit 740654b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions petabtests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from .file import * # noqa: F403, F401
from .evaluate import * # noqa: F403, F401
from .core import * # noqa: F403, F401
from .antimony import * # noqa: F403, F401
2 changes: 2 additions & 0 deletions petabtests/antimony.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import antimony as ant
from pathlib import Path

__all__ = ["antimony_to_sbml_str"]


def antimony_to_sbml_str(ant_model: str | Path) -> str:
"""Convert Antimony string to SBML model.
Expand Down
12 changes: 7 additions & 5 deletions petabtests/cases/v1.0.0/sbml/0018/0018.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
import pandas as pd
from petab.v1.C import *
from pathlib import Path
from petabtests import PetabTestCase, analytical_a, analytical_b
from petabtests.antimony import antimony_to_sbml_str
from petabtests import (
PetabTestCase,
analytical_a,
analytical_b,
antimony_to_sbml_str,
)

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -39,9 +43,7 @@
k1 = 0
k2 = 0
compartment default_compartment
species A in default_compartment = 0
B = 0
A = a0
species A in default_compartment = a0
B = b0
A' = k2 * B - k1 * A
B' = - default_compartment * k2 * B + default_compartment * k1 * A
Expand Down
8 changes: 6 additions & 2 deletions petabtests/cases/v2.0.0/sbml/0018/0018.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
import pandas as pd
from petab.v1.C import *
from pathlib import Path
from petabtests import PetabTestCase, analytical_a, analytical_b
from petabtests.antimony import antimony_to_sbml_str
from petabtests import (
PetabTestCase,
analytical_a,
analytical_b,
antimony_to_sbml_str,
)

DESCRIPTION = cleandoc("""
## Objective
Expand Down

0 comments on commit 740654b

Please sign in to comment.