-
Notifications
You must be signed in to change notification settings - Fork 31
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
Release 0.28.0 #2581
Merged
Merged
Release 0.28.0 #2581
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ndent sigmas (AMICI-dev#2562) Due to PEtab not allowing and observables in noiseFormula and AMICI not allowing state variables in sigma expressions, we are trying to replace any state variables by matching observables during PEtab import. However, if there were multiple observables with the same observableFormula, or one observableFormula was contained in another one, the substition of observableFormula for observableId could - depending on the ordering - result in noiseFormulas depending on other observables, which could lead to incorrect sensitivities due to AMICI-dev#2561. This change ensures that we are only using the observableId from the same row of the observable table as the noiseFormula. --------- Co-authored-by: Dilan Pathirana <[email protected]>
* Fix instance vs class attribute for step sizes * Only flatten problems where necessary
Set PYTHONFAULTHANDLER=1 for more output on crashes (AMICI-dev#2565). So far, this was only set for Ubuntu tests.
* Refactor tests/benchmark-models/test_benchmark_collection.sh into pytest cases * Unify with gradient checks in `tests/benchmark-models/test_petab_benchmark.py` * Test some additional benchmark problems For now, just consolidating the old tests. To be cleaned up further later on. Closes AMICI-dev#2510.
* Reference value wasn't found for Fiedler_BMCSystBiol2016, because it was recently renamed * Print all rows from gradient check results
Ignore warnings during macos pytest runs.
It looks like all our dependencies are now Python3.13-ready (https://github.com/AMICI-dev/AMICI/actions/runs/11753436377/job/32746292107), so we should require Python3.13 tests to pass.
…eSensitivityMode::integrationOnly` (AMICI-dev#2576) Fixes a bug that would result in disabling Newton's method for steady-state computation when steady-state sensitivity mode is set to `integrationOnly`, even if no senitivities are computed. This was because only the sensitivity method was checked, but not the sensitivity order. Fixes AMICI-dev#2575.
**Breaking change** Change the default mode for computing steady states and sensitivities at steady state to `integrationOnly` (from previously `integrateIfNewtonFails`). This is done for a more robust default behaviour. For example, the evaluation in https://doi.org/10.1371/journal.pone.0312148 shows that - at least for some models - Newton's method may easily lead to physically impossible solutions. To keep the previous behaviour, use: ```python amici_model.setSteadyStateComputationMode(amici.SteadyStateComputationMode.integrateIfNewtonFails) amici_model.setSteadyStateSensitivityMode(amici.SteadyStateSensitivityMode.integrateIfNewtonFails) ``` Closes AMICI-dev#2571.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2581 +/- ##
==========================================
+ Coverage 77.76% 78.00% +0.24%
==========================================
Files 325 325
Lines 21858 21852 -6
Branches 1473 1456 -17
==========================================
+ Hits 16997 17046 +49
+ Misses 4834 4795 -39
+ Partials 27 11 -16
Flags with carried forward coverage won't be shown. Click here to find out more.
|
`amici.petab.conditions.fill_in_parameters` emits a warnings if parameters are supplied that don't occur in the parameter mapping. This is to point out potential issues with the parameter mapping. However, sometimes it's more convenient to silently ignore those extra parameters. Therefore, make this warning optional.
Update `fixes`, ignore test models.
When copying SUNDIALS objects, we need to make sure they have a valid `SUNContext` set. When copying `ModelStateDerived`, the `SUNContext` needs to be updated. Otherwise, dangling SUNContext pointers likely result in segfaults later on (AMICI-dev#2579). This was done only for a subset of objects. In particular the ones added only during AMICI-dev#2505 were missing, because of other changes happening in parallel. To make this less messy: Add `set_ctx(.)` functions all our sundials vector/matrix wrappers. Closes AMICI-dev#2579.
dweindl
force-pushed
the
release_0.28.0
branch
from
November 10, 2024 17:53
095276b
to
38225e8
Compare
dweindl
force-pushed
the
release_0.28.0
branch
from
November 10, 2024 17:54
38225e8
to
307fb23
Compare
FFroehlich
approved these changes
Nov 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.