Skip to content

Don't allow I_P to go negative due to rounding error#417

Open
richfitz wants to merge 8 commits into
masterfrom
fix-negative-I
Open

Don't allow I_P to go negative due to rounding error#417
richfitz wants to merge 8 commits into
masterfrom
fix-negative-I

Conversation

@richfitz
Copy link
Copy Markdown
Member

We were seeing errors in n_S_progress eventually traced back to the
calculation of new_I_P. There's a rounding error corner case where
a - (b + c) can be slightly negative where a == d and d = b + c

richfitz added 2 commits May 19, 2022 15:36
We were seeing errors in `n_S_progress` eventually traced back to the
calculation of new_I_P. There's a rounding error corner case where
a - (b + c) can be slightly negative where a == d and d = b + c
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (329ce61) compared to base (3debc9c).
Patch has no changes to coverable lines.

❗ Current head 329ce61 differs from pull request most recent head 64ebc92. Consider uploading reports for the commit 64ebc92 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #417   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines         3157      3142   -15     
=========================================
- Hits          3157      3142   -15     
Impacted Files Coverage Δ
R/lancelot.R 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@richfitz richfitz marked this pull request as ready for review May 19, 2022 15:46
@richfitz richfitz requested a review from edknock May 19, 2022 15:46
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.

3 participants