Skip to content
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

Fix potentially incorrect disabling of Newton's method #2576

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 9, 2024

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.
The problem exists since Model::setSteadyStateSensitivityMode was introduced (#2074, v0.19.0 (2023-08-26)).

Fixes #2575.

@dweindl dweindl marked this pull request as ready for review November 9, 2024 09:30
@dweindl dweindl requested a review from a team as a code owner November 9, 2024 09:30
…eSensitivityMode::integrationOnly`

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.
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.76%. Comparing base (0009c4a) to head (13c01a5).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2576   +/-   ##
========================================
  Coverage    77.76%   77.76%           
========================================
  Files          325      325           
  Lines        21861    21862    +1     
  Branches      1473     1473           
========================================
+ Hits         17000    17001    +1     
  Misses        4834     4834           
  Partials        27       27           
Flag Coverage Δ
cpp 73.64% <100.00%> (+<0.01%) ⬆️
cpp_python 34.21% <50.00%> (-0.01%) ⬇️
petab 37.08% <0.00%> (-0.01%) ⬇️
python 72.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/steadystateproblem.cpp 84.07% <100.00%> (+0.03%) ⬆️

@dweindl dweindl added this pull request to the merge queue Nov 10, 2024
Merged via the queue into AMICI-dev:develop with commit 9e7f06b Nov 10, 2024
20 checks passed
@dweindl dweindl deleted the fix_2575 branch November 10, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants