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

Improve debugging info in ReturnData #2349

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Mar 5, 2024

For two tests against pre-generated matlab results, the checks for J and xdot fail expectedly, since they are now evaluated at a different timepoint.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.27%. Comparing base (9824aba) to head (cc9bbfa).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2349      +/-   ##
===========================================
+ Coverage    77.75%   78.27%   +0.51%     
===========================================
  Files          324      324              
  Lines        20820    20825       +5     
  Branches      1453     1454       +1     
===========================================
+ Hits         16188    16300     +112     
+ Misses        4629     4522     -107     
  Partials         3        3              
Flag Coverage Δ
cpp 74.04% <100.00%> (+0.52%) ⬆️
cpp_python 34.25% <66.66%> (+<0.01%) ⬆️
petab 36.86% <50.00%> (+<0.01%) ⬆️
python 72.83% <100.00%> (+0.52%) ⬆️
sbmlsuite ?

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

Files Coverage Δ
include/amici/forwardproblem.h 100.00% <ø> (ø)
include/amici/rdata.h 100.00% <ø> (ø)
python/sdist/amici/numpy.py 87.61% <ø> (ø)
src/amici.cpp 81.41% <100.00%> (+0.16%) ⬆️
src/forwardproblem.cpp 91.24% <100.00%> (+0.08%) ⬆️
src/hdf5.cpp 89.91% <100.00%> (+0.03%) ⬆️

... and 4 files with indirect coverage changes

* Add `ReturnData::t_last` that holds the last solver timepoint (Closes AMICI-dev#2246)
* `ReturnData::J` is now the evaluted at `t_last` instead of the last successfully reached output timepoint (Closes AMICI-dev#2334)
* `ReturnData::xdot` is now the evaluted at `t_last` instead of the last successfully reached output timepoint
@dweindl dweindl marked this pull request as ready for review March 6, 2024 20:09
@dweindl dweindl requested a review from a team as a code owner March 6, 2024 20:09
@dweindl dweindl merged commit 8d65524 into AMICI-dev:develop Mar 7, 2024
20 checks passed
@dweindl dweindl deleted the fix_2246_rdata_tlast branch March 7, 2024 11:10
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.

ReturnData::J In case of simulation failures, store time point of failure in ReturnData
2 participants