Skip to content

Update petab v2 tests #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0001/0001.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -63,7 +63,7 @@
]


case = PetabTestCase(
case = PetabV1TestCase(
id=1,
brief="Simulation. Nothing special.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0002/0002.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -71,7 +71,7 @@
*[analytical_a(t, 0.9, 1, 0.8, 0.6) for t in [0, 10]],
]

case = PetabTestCase(
case = PetabV1TestCase(
id=2,
brief="Simulation. Two conditions. Numeric parameter override.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0003/0003.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -71,7 +71,7 @@
0.5 * analytical_a(t, 1, 0, 0.8, 0.6) + 2 for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=3,
brief="Simulation. Numeric observable parameter overrides in measurement "
"table.",
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0004/0004.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -68,7 +68,7 @@
0.5 * analytical_a(t, 1, 0, 0.8, 0.6) + 2 for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=4,
brief="Simulation. Observable parameters only defined in parameter table.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0005/0005.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a, antimony_to_sbml_str
from petabtests import PetabV1TestCase, analytical_a, antimony_to_sbml_str

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -88,7 +88,7 @@
*(analytical_a(10, 1, 0, 0.8, 0.6) + offset for offset in [2, 3]),
]

case = PetabTestCase(
case = PetabV1TestCase(
id=5,
brief="Simulation. Condition-specific parameters only defined in "
"parameter table.",
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0005/_model.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by libAntimony version v2.14.0 with libSBML version 5.20.2. -->
<!-- Created by libAntimony version v2.15.0 with libSBML version 5.20.2. -->
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model metaid="petab_test_0011" id="petab_test_0011">
<listOfCompartments>
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0006/0006.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -67,7 +67,7 @@
15 * analytical_a(10, 1, 0, 0.8, 0.6),
]

case = PetabTestCase(
case = PetabV1TestCase(
id=6,
brief="Simulation. Time-point specific numeric observable parameter "
"overrides.",
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0007/0007.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from petabtests import (
DEFAULT_SBML_FILE,
PetabTestCase,
PetabV1TestCase,
analytical_a,
analytical_b,
)
Expand Down Expand Up @@ -72,7 +72,7 @@
analytical_b(10, 1, 0, 0.8, 0.6),
]

case = PetabTestCase(
case = PetabV1TestCase(
id=7,
brief="Simulation. Observable transformation log10.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0008/0008.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -64,7 +64,7 @@
analytical_a(t, 1, 0, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=8,
brief="Simulation. Replicate measurements.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0009/0009.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from petabtests import (
DEFAULT_SBML_FILE,
PetabTestCase,
PetabV1TestCase,
analytical_a,
analytical_b,
)
Expand Down Expand Up @@ -76,7 +76,7 @@
for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=9,
brief="Simulation. Preequilibration.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0010/0010.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -72,7 +72,7 @@
analytical_a(t, steady_state_a, 1, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=10,
brief="Simulation. Preequilibration. One species reinitialized, one not. "
"InitialAssignment to species overridden.",
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0011/0011.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *
from pathlib import Path
from petabtests import PetabTestCase, analytical_a, antimony_to_sbml_str
from petabtests import PetabV1TestCase, analytical_a, antimony_to_sbml_str

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -79,7 +79,7 @@
analytical_a(t, 1, 2, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=11,
brief="Simulation. InitialAssignment to species overridden.",
description=DESCRIPTION,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0011/_model.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by libAntimony version v2.14.0 with libSBML version 5.20.2. -->
<!-- Created by libAntimony version v2.15.0 with libSBML version 5.20.2. -->
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model metaid="petab_test_0011" id="petab_test_0011">
<listOfCompartments>
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0012/0012.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -64,7 +64,7 @@
analytical_a(t, 1, 1, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=12,
brief="Simulation. Initial compartment size in condition table.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0013/0013.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a
from petabtests import PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -64,7 +64,7 @@
analytical_a(t, 1, 7, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=13,
brief="Simulation. Species with InitialAssignment overridden by "
"parameter.",
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0014/0014.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -62,7 +62,7 @@
analytical_a(t, 1, 0, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=14,
brief="Simulation. Multiple numeric noise parameter overrides.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0015/0015.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import DEFAULT_SBML_FILE, PetabTestCase, analytical_a
from petabtests import DEFAULT_SBML_FILE, PetabV1TestCase, analytical_a

DESCRIPTION = cleandoc("""
## Objective
Expand Down Expand Up @@ -62,7 +62,7 @@
analytical_a(t, 1, 0, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=15,
brief="Simulation. Single parametric noise parameter override.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0016/0016.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from petabtests import (
DEFAULT_SBML_FILE,
PetabTestCase,
PetabV1TestCase,
analytical_a,
analytical_b,
)
Expand Down Expand Up @@ -71,7 +71,7 @@
analytical_b(10, 1, 0, 0.8, 0.6),
]

case = PetabTestCase(
case = PetabV1TestCase(
id=16,
brief="Simulation. Observable transformation log.",
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0017/0017.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from petabtests import (
DEFAULT_SBML_FILE,
PetabTestCase,
PetabV1TestCase,
analytical_a,
analytical_b,
)
Expand Down Expand Up @@ -83,7 +83,7 @@
analytical_a(t, 1, steady_state_b, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=17,
brief="Simulation. Preequilibration. One species reinitialized, one not "
"(NaN in condition table). InitialAssignment to species overridden.",
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0018/0018.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from petab.v1.C import *
from pathlib import Path
from petabtests import (
PetabTestCase,
PetabV1TestCase,
analytical_a,
analytical_b,
antimony_to_sbml_str,
Expand Down Expand Up @@ -106,7 +106,7 @@
][3:]


case = PetabTestCase(
case = PetabV1TestCase(
id=18,
brief="Simulation. Preequilibration and RateRules. One state "
"reinitialized, one not (NaN in condition table). InitialAssignment "
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0018/_model.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by libAntimony version v2.14.0 with libSBML version 5.20.2. -->
<!-- Created by libAntimony version v2.15.0 with libSBML version 5.20.2. -->
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model metaid="petab_test_0018" id="petab_test_0018">
<listOfCompartments>
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0018/model.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by libAntimony version v2.14.0 with libSBML version 5.20.2. -->
<!-- Created by libAntimony version v2.15.0 with libSBML version 5.20.2. -->
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model metaid="petab_test_0018" id="petab_test_0018">
<listOfCompartments>
Expand Down
4 changes: 2 additions & 2 deletions petabtests/cases/v1.0.0/sbml/0019/0019.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
from petab.v1.C import *

from petabtests import PetabTestCase, analytical_a, antimony_to_sbml_str
from petabtests import PetabV1TestCase, analytical_a, antimony_to_sbml_str
from pathlib import Path

DESCRIPTION = cleandoc("""
Expand Down Expand Up @@ -84,7 +84,7 @@
analytical_a(t, 2, 3, 0.8, 0.6) for t in simulation_df[TIME]
]

case = PetabTestCase(
case = PetabV1TestCase(
id=19,
brief="Simulation. Estimated initial value via conditions table.",
description=DESCRIPTION,
Expand Down
2 changes: 1 addition & 1 deletion petabtests/cases/v1.0.0/sbml/0019/_model.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by libAntimony version v2.14.0 with libSBML version 5.20.2. -->
<!-- Created by libAntimony version v2.15.0 with libSBML version 5.20.2. -->
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model metaid="petab_test_0011" id="petab_test_0011">
<listOfCompartments>
Expand Down
Loading
Loading