Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 6, 2025
1 parent 8db0880 commit 6d89e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions petab/v1/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,8 @@ class ProblemConfig(BaseModel):
def to_yaml(self, filename: str | Path):
"""Write the configuration to a YAML file.
filename: Destination file name. The parent directory will be created
if necessary.
:param filename: Destination file name. The parent directory will be
created if necessary.
"""
from .yaml import write_yaml

Expand Down
5 changes: 3 additions & 2 deletions petab/v2/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ class ModelFile(BaseModel):
class SubProblem(BaseModel):
"""A `problems` object in the PEtab problem configuration."""

# TODO: consider changing str to Path
model_files: dict[str, ModelFile] | None = {}
measurement_files: list[str | AnyUrl] = []
condition_files: list[str | AnyUrl] = []
Expand Down Expand Up @@ -1031,8 +1032,8 @@ class ProblemConfig(BaseModel):
def to_yaml(self, filename: str | Path):
"""Write the configuration to a YAML file.
filename: Destination file name. The parent directory will be created
if necessary.
:param filename: Destination file name. The parent directory will be
created if necessary.
"""
from ..v1.yaml import write_yaml

Expand Down

0 comments on commit 6d89e04

Please sign in to comment.