-
Notifications
You must be signed in to change notification settings - Fork 47
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
AmiciObjective/PEtab import: Fix plist #1493
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1493 +/- ##
===========================================
+ Coverage 82.69% 82.70% +0.01%
===========================================
Files 163 163
Lines 13896 13907 +11
===========================================
+ Hits 11491 11502 +11
Misses 2405 2405 ☔ View full report in Codecov by Sentry. |
fa570ba
to
59f78ed
Compare
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.
Looks good to me. Also would not be aware of a better suitable/more elegant approach
ee11bd6
to
b8e6b1c
Compare
ping @FFroehlich |
For further background, see ICB-DCM#1448. We don't have to compute the full gradient in every model simulation. Some entries might not be required because of fixed parameter or some condition-specific objective parameter mapping. The former was supported (however, not tested), the latter was not supported. Now both are tested an supported. There was no good way to communicate the fixed parameters to AmiciCalculator where ExpData.plist gets set. Passing this information is currently only possible through the parameter mapping, based on which the required sensitivities are determined. Therefore, in addition to the general parameter mapping, there is now a parameter mapping that accounts for the fixed parameters. Not sure what could be a more elegant way to handle that.
b8e6b1c
to
af1a7c8
Compare
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.
thanks 🙏
…1509) Fixes a warning `RuntimeWarning: The following problem parameters were not used: {[...]} amici.petab.conditions.fill_in_parameters(` in case of fixed parameters. The warning was issued since #1493. This also fills in the fixed parameter values in the parameter mapping for the fixed parameters that was missing in #1493.
Follow-up to ICB-DCM#1493 and ICB-DCM#1509, which only filled in PEtab-fixed parameters for simulation but not preequilibration in the parameter mapping. Adding Weber_BMC2015 to the PEtab tests, where this issue popped up.
For further background, see #1448.
We don't have to compute the full gradient in every model simulation. Some entries might not be required because of fixed parameter or some condition-specific objective parameter mapping. The former was supported (however, not tested), the latter was not supported. Now both are tested an supported.
There was no good way to communicate the fixed parameters to AmiciCalculator where ExpData.plist gets set. Passing this information is currently only possible through the parameter mapping, based on which the required sensitivities are determined. Therefore, in addition to the general parameter mapping, there is now a parameter mapping that accounts for the fixed parameters. Not sure what could be a more elegant way to handle that.