-
Notifications
You must be signed in to change notification settings - Fork 2
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
remove sum rule from conversion #281
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #281 +/- ##
==========================================
+ Coverage 96.96% 96.98% +0.01%
==========================================
Files 49 49
Lines 4612 4603 -9
==========================================
- Hits 4472 4464 -8
+ Misses 140 139 -1 ☔ View full report in Codecov by Sentry. |
@@ -472,7 +449,6 @@ def derive_weights( | |||
dim: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
derive_weights
function will change again when I remove input_weights
and output_weights
@JGuetschow do you wanna have a look at this? The changes are relatively simple and don't really change the conversion algorithm. The more interesting part will be in the next PR when we deal with multiple categories in the target categorisation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good to me.
Was 'extensive' the only implemented rule? I would expect removed code and tests for other rules.
Thanks for the review.
There were two different options, Without the |
OK, so there just were no tests for the |
Pull request
Please confirm that this pull request has done the following:
{pr}.thing.md
file in the directorychangelog
added - see changelog/README.md for detailsDescription
Previously the
convert
function supported extensive data (like total emissions in a year subdivided into multiplesectoral categories) and intensive data (like average per-person emissions in a year subdivided into different territorial entities). We decided that we don't want to support the handling of intensive data, as we don't
expect this to be a common use case.
This pull request removes the
sum_rule
argument and code and always assumes extensive data. It adds documentation that this is only meant to be used with extensive quantities.The general plan (Mika): In a first PR remove the
sum_rule
, in a second PR which builds on the first remove theinput_weights
andoutput_weights
and raise errors instead if downscaling would be necessary. Then, start work on an actual conversion and add downscaling support as needed.