Skip to content

Don't attempt FSA when nx==0 #2749

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

Merged

Conversation

FFroehlich
Copy link
Member

Summary

  • avoid segfault when computing forward sensitivities on models without state variables

Testing

  • This environment doesn't have network access after setup, so Codex couldn't run certain commands. Consider configuring a setup script in your Codex environment to install dependencies.

@FFroehlich FFroehlich requested a review from a team as a code owner May 20, 2025 19:13
@FFroehlich
Copy link
Member Author

Summary

  • avoid segfault when computing forward sensitivities on models without state variables

Testing

  • This environment doesn't have network access after setup, so Codex couldn't run certain commands. Consider configuring a setup script in your Codex environment to install dependencies.

potential fix for #2745, took codex about 4 minutes to come up with this solution

Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.97%. Comparing base (6ebf6a3) to head (9a4cbe9).
Report is 3 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2749   +/-   ##
========================================
  Coverage    77.97%   77.97%           
========================================
  Files          327      327           
  Lines        23103    23103           
  Branches      1488     1488           
========================================
  Hits         18015    18015           
  Misses        5077     5077           
  Partials        11       11           
Flag Coverage Δ
cpp 74.85% <100.00%> (ø)
cpp_python 33.66% <100.00%> (ø)
petab 39.29% <100.00%> (ø)
python 73.01% <100.00%> (ø)

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

Files with missing lines Coverage Δ
include/amici/solver.h 94.11% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@dweindl dweindl changed the title Fix FSA detection when nx==0 Don't attempt FSA when nx==0 May 21, 2025
Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixes #2745 indeed.

@FFroehlich FFroehlich added this pull request to the merge queue May 21, 2025
Merged via the queue into develop with commit 067e5a0 May 21, 2025
31 of 32 checks passed
@dweindl dweindl deleted the codex/fix-segfault-in-forward-sensitivity-calculation branch May 21, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault when computing forward sensitivities for model with no state variables
2 participants