-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support for PEtab problems with multiple condition files #152
Conversation
Allows specifying different conditions in different files. Closes #7
Codecov Report
@@ Coverage Diff @@
## develop #152 +/- ##
===========================================
+ Coverage 77.14% 77.39% +0.24%
===========================================
Files 26 26
Lines 2437 2437
Branches 579 579
===========================================
+ Hits 1880 1886 +6
Misses 404 404
+ Partials 153 147 -6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
petab/problem.py
Outdated
@@ -88,7 +88,8 @@ def __setstate__(self, state): | |||
@staticmethod | |||
def from_files( | |||
sbml_file: Union[str, Path, None] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbml_file: Union[str, Path, None] = None, | |
sbml_file: Union[str, Path] = None, |
Not sure, why can sbml_file
and condition_file
be specified as None
by the user, but not the other tables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of them should be optional.
petab/problem.py
Outdated
@@ -88,7 +88,8 @@ def __setstate__(self, state): | |||
@staticmethod | |||
def from_files( | |||
sbml_file: Union[str, Path, None] = None, | |||
condition_file: Union[str, Path, None] = None, | |||
condition_file: | |||
Union[str, Path, None, Iterable[Union[str, Path]]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but parameter_file
can also be Iterable[Union[str, Path]]
here, but is List[str]
in get_parameter_df
[1]. I guess it can be changed to Iterable[Union[str, Path]]
at [1] too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will address separately
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Allows specifying different conditions in different files.
Closes #7