Skip to content

Commit

Permalink
Use petab.v1 (#74)
Browse files Browse the repository at this point in the history
Be compatible with, and require petab>=0.4.0
  • Loading branch information
dweindl authored Jul 1, 2024
1 parent 0f34f23 commit 4a1b1b0
Show file tree
Hide file tree
Showing 65 changed files with 88 additions and 66 deletions.
7 changes: 7 additions & 0 deletions petabtests/C.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Constants."""

from pathlib import Path
import sys

# paths
BASE_DIR = Path(__file__).parent
Expand All @@ -20,3 +21,9 @@
TOL_SIMULATIONS = "tol_simulations"
TOL_CHI2 = "tol_chi2"
TOL_LLH = "tol_llh"

__all__ = [
x
for x in dir(sys.modules[__name__])
if not x.startswith("_") and x not in {"sys", "Path"}
]
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0001/0001.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0002/0002.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from math import nan

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0003/0003.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0004/0004.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0005/0005.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0006/0006.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0007/0007.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_SBML_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0008/0008.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0009/0009.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_SBML_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0010/0010.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0011/0011.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0012/0012.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0013/0013.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0014/0014.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0015/0015.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0016/0016.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_SBML_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0017/0017.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_SBML_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0018/0018.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *
from pathlib import Path
from petabtests import PetabTestCase, analytical_a, analytical_b

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0019/0019.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0001/0001.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0002/0002.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from math import nan

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0003/0003.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0004/0004.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0005/0005.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0006/0006.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0007/0007.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_PYSB_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0008/0008.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0009/0009.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_PYSB_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0010/0010.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0011/0011.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0012/0012.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0013/0013.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0014/0014.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0015/0015.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0016/0016.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_PYSB_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0017/0017.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import (
DEFAULT_PYSB_FILE,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/pysb/0018/0018.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_PYSB_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/sbml/0001/0001.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/sbml/0002/0002.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from math import nan

import pandas as pd
from petab.C import *
from petab.v1.C import *
from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

DESCRIPTION = cleandoc("""
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/sbml/0003/0003.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/sbml/0004/0004.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import cleandoc

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a

Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v2.0.0/sbml/0005/0005.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path

import pandas as pd
from petab.C import *
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a

Expand Down
Loading

0 comments on commit 4a1b1b0

Please sign in to comment.