Skip to content

Commit 6d89e04

Browse files
committed
review
1 parent 8db0880 commit 6d89e04

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

petab/v1/problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,8 @@ class ProblemConfig(BaseModel):
12151215
def to_yaml(self, filename: str | Path):
12161216
"""Write the configuration to a YAML file.
12171217
1218-
filename: Destination file name. The parent directory will be created
1219-
if necessary.
1218+
:param filename: Destination file name. The parent directory will be
1219+
created if necessary.
12201220
"""
12211221
from .yaml import write_yaml
12221222

petab/v2/problem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ class ModelFile(BaseModel):
993993
class SubProblem(BaseModel):
994994
"""A `problems` object in the PEtab problem configuration."""
995995

996+
# TODO: consider changing str to Path
996997
model_files: dict[str, ModelFile] | None = {}
997998
measurement_files: list[str | AnyUrl] = []
998999
condition_files: list[str | AnyUrl] = []
@@ -1031,8 +1032,8 @@ class ProblemConfig(BaseModel):
10311032
def to_yaml(self, filename: str | Path):
10321033
"""Write the configuration to a YAML file.
10331034
1034-
filename: Destination file name. The parent directory will be created
1035-
if necessary.
1035+
:param filename: Destination file name. The parent directory will be
1036+
created if necessary.
10361037
"""
10371038
from ..v1.yaml import write_yaml
10381039

0 commit comments

Comments
 (0)