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

Always check for finite x0 #1955

Merged
merged 3 commits into from
Jan 25, 2023
Merged

Always check for finite x0 #1955

merged 3 commits into from
Jan 25, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jan 24, 2023

Initial states should always be checked for finite values, not only with Model.setAlwaysCheckFinite(True). As this only happens once per simulation, the overhead is negligible.

Closes #1952

Initial states should always be checked for finite values, not only with `Model.setAlwaysCheckFinite(True)`. As this only happens once per simulation, the overhead is negligible.

Closes #1952
@dweindl dweindl requested a review from FFroehlich January 24, 2023 14:03
@dweindl dweindl linked an issue Jan 24, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jan 24, 2023

Codecov Report

Merging #1955 (f74b535) into develop (9ef2e36) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1955      +/-   ##
===========================================
+ Coverage    75.96%   76.01%   +0.04%     
===========================================
  Files           76       76              
  Lines        12981    13015      +34     
===========================================
+ Hits          9861     9893      +32     
- Misses        3120     3122       +2     
Flag Coverage Δ
cpp 73.10% <100.00%> (-0.03%) ⬇️
petab 59.68% <ø> (ø)
python 69.19% <ø> (+0.23%) ⬆️
sbmlsuite ?

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

Impacted Files Coverage Δ
src/model.cpp 78.18% <100.00%> (-0.02%) ⬇️
src/sundials_matrix_wrapper.cpp 80.20% <0.00%> (-0.41%) ⬇️
python/sdist/amici/ode_model.py 99.28% <0.00%> (+0.23%) ⬆️

@FFroehlich
Copy link
Member

this is an abysmal pain to look at, can we separate clang formats from actual changes?

src/model.cpp Show resolved Hide resolved
src/model.cpp Show resolved Hide resolved
@dweindl
Copy link
Member Author

dweindl commented Jan 24, 2023

this is an abysmal pain to look at, can we separate clang formats from actual changes?

oops. didn't notice there was so much. I'll just clang-format everything later, then that issue should be solved for the near future.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

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

👍

@dweindl dweindl merged commit 1d68161 into develop Jan 25, 2023
@dweindl dweindl deleted the finite_x0 branch January 25, 2023 10:55
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.

Always check for finite x0
2 participants