Skip to content

Commit af3e707

Browse files
authored
v2: merge .core and .problem (#414)
Move `v2.problem.*` to `v2.core`. Keep all pydantic models in the same module. Avoid unnecessary import complexity.
1 parent 11db39d commit af3e707

File tree

7 files changed

+1422
-1466
lines changed

7 files changed

+1422
-1466
lines changed

petab/v2/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@
4444
)
4545
from .lint import lint_problem # noqa: F401, E402
4646
from .models import MODEL_TYPE_PYSB, MODEL_TYPE_SBML, Model # noqa: F401, E402
47-
from .problem import Problem, ProblemConfig # noqa: F401, E402

petab/v2/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
ConditionTable,
1515
Experiment,
1616
ExperimentPeriod,
17+
Problem,
1718
)
1819
from .models._sbml_utils import add_sbml_parameter, check
1920
from .models.sbml_model import SbmlModel
20-
from .problem import Problem
2121

2222
__all__ = ["ExperimentsToEventsConverter"]
2323

0 commit comments

Comments
 (0)