-
Notifications
You must be signed in to change notification settings - Fork 159
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 PRICE_EMISSION
definition
#912
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #912 +/- ##
=====================================
Coverage 95.6% 95.6%
=====================================
Files 48 48
Lines 4394 4401 +7
=====================================
+ Hits 4204 4211 +7
Misses 190 190
|
12c9110
to
c5a39c3
Compare
c5a39c3
to
0a8d658
Compare
Thanks for excerpting a clean version of these changes.
I will join to try to write an appropriate summary that alerts users to the nature of the change and its expected impact. Per the commit messages, I'm not sure yet that adopting “conventional commits”—either optionally or as mandatory for all contributions—has benefit/cost > 1. Can we either:
|
4ae7842
to
f7a82d1
Compare
f7a82d1
to
1c69bfd
Compare
In preparation of the 3.10 release, @khaeru and I noticed that the original PR to fix
PRICE_EMISSION
(address #723) has become a little cluttered with discussions of how to create a proper test for the calculation update. Meanwhile, @volker-krey suggested that we should just bring the fix tomain
and open a follow-up issue to create the test later. Thus, this PR adds all changes from #726 that seem to be necessary to fix the calculation and make the tests pass as they are.Caution
The error with the current calculation of
PRICE_EMISSION
went undetected so long because our tests were not stringent enough. Hence our initial insistence that #726 contain the exact kind of test to prevent the issue from coming up again. Such a test is missing from this PR on purpose, but that makes it incomplete in that sense. We need to maintain the sense of urgency that this test should be added as quickly as possible.The only reason we are considering merging this without the test is because both @OFR-IIASA and @yiyi1991 manually confirmed that this fix works on sufficiently complex scenarios.
How to review
developer (someone like the reviewer) will be able to understand what the code
does in the future.
PRICE_EMISSION
calculation is explained and needs updating, please share that.PR checklist