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
Feature/recursive aggregation #405
Feature/recursive aggregation #405
Conversation
…on_test Add a test for recursive aggregation
Note that tests are failing because the IIASA infrastructure is unavailable today... |
…urandt/pyam into feature/recursive_aggregation
thanks @tburandt! By the way, you could have simply accepted the suggestion directly on this page, no need (any more) to copy-paste it into your editor and then commit... Can you click "resolve" on all @stickler-ci comments that you cleaned up, please? |
Ha, ok, I wasn't actually aware of that (obviously), now I feel a bit ashamed :D |
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
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.
a few suggestions for improvements...
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
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.
Thanks @tburandt, really nice addition to the feature list! just added a few suggestion for clean-up and adding docstrings, then good to be merged...
One question: when you use this with realistically-sized scenario data, is run-time an issue? the append()
function is quite costly (because it checks that there are no duplicate rows in data
)... if yes, we may want to consider a refactoring for speed (could also be implemented later)...
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
Thanks @danielhuppmann for all your support in this PR :) I will quickly test the feature with a larger dataset |
@danielhuppmann |
took the liberty to resolve the merge conflict... |
Codecov Report
@@ Coverage Diff @@
## master #405 +/- ##
==========================================
+ Coverage 93.25% 93.26% +0.01%
==========================================
Files 35 35
Lines 4090 4129 +39
==========================================
+ Hits 3814 3851 +37
- Misses 276 278 +2
Continue to review full report at Codecov.
|
thank you @tburandt! let's keep in mind that this feature could probably be faster - so let's revisit it and refactor the code when aggregating the results takes longer than running the model... |
Please confirm that this PR has done the following:
Description of PR
This PR adds the functionality to recursively aggregating variables. Based on #385