Skip to content

Commit 1392112

Browse files
committed
..
1 parent 847d4a0 commit 1392112

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

petab/v2/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ class Parameter(BaseModel):
859859
scale: ParameterScale = Field(
860860
alias=C.PARAMETER_SCALE, default=ParameterScale.LIN
861861
)
862+
# TODO: change to bool in PEtab, or serialize as 0/1?
863+
# https://github.com/PEtab-dev/PEtab/discussions/610
862864
#: Is the parameter to be estimated?
863865
estimate: bool = Field(alias=C.ESTIMATE, default=True)
864866

tests/v2/test_conversion.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
import tempfile
32

43
import pytest
54

@@ -37,10 +36,10 @@ def test_benchmark_collection(problem_id):
3736
logging.basicConfig(level=logging.DEBUG)
3837

3938
if problem_id == "Froehlich_CellSystems2018":
39+
# this is mostly about 6M sympifications in the condition table
4040
pytest.skip("Too slow. Re-enable once we are faster.")
4141

4242
yaml_path = benchmark_models_petab.get_problem_yaml_path(problem_id)
43-
with tempfile.TemporaryDirectory(
44-
prefix=f"test_petab1to2_{problem_id}"
45-
) as tmpdirname:
46-
petab1to2(yaml_path, tmpdirname)
43+
problem = petab1to2(yaml_path)
44+
assert isinstance(problem, Problem)
45+
assert len(problem.measurement_table.measurements)

0 commit comments

Comments
 (0)