-
Notifications
You must be signed in to change notification settings - Fork 32
PEtab v2 import #2974
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
PEtab v2 import #2974
Conversation
074fdb9 to
1904851
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2974 +/- ##
==========================================
+ Coverage 76.71% 77.38% +0.67%
==========================================
Files 309 311 +2
Lines 19899 20597 +698
Branches 1497 1500 +3
==========================================
+ Hits 15265 15939 +674
- Misses 4621 4648 +27
+ Partials 13 10 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
5ce3337 to
3b9080f
Compare
cfeb505 to
02ad833
Compare
31db7ab to
a90f960
Compare
374226a to
7c3536c
Compare
| # compile amici model | ||
| if case.startswith("0006") and not jax: | ||
| # TODO: petab.flatten_timepoint_specific_output_overrides(problem) | ||
| # petab.flatten_timepoint_specific_output_overrides(problem) |
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.
Other tests suggest this is now supported
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.
Now implemented.
| # TODO: So far, PEtab can only upgrade file-based problems, | ||
| # not petab.v1.Problem objects. | ||
| raise NotImplementedError( | ||
| "Only `petab.v2.Problem` is currently supported. " |
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.
should this error message explicitly mention incompatibility with file based problems to avoid confusion?
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.
Reworded.
| ): | ||
| target_entity.value = expr | ||
| else: | ||
| # if the target is not an expression, it must be an |
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.
TODO: would be more efficient to convert this into a multi-model problem, but who knows whether we will ever get around to implementing that.
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.
Added as TODO.
Experimental import of SBML- and PySB-based PEtab v2 problems.
Not particularly performant or feature-complete yet - to be extended.
Closes #2662.
👀 https://amici--2974.org.readthedocs.build/en/2974/examples/example_petab/petab_v2.html
👀 https://amici--2974.org.readthedocs.build/en/2974/generated/amici.petab.petab_importer.html#module-amici.petab.petab_importer