-
Notifications
You must be signed in to change notification settings - Fork 115
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
Warnings in recursive-aggregation #545
Comments
Thanks for reporting this issue @pjuergens - my hunch is that the offending line is Line 79 in 0989fdd
var_list exists in _df .
Luckily, there is a simple decorator in pyam that allows you to change the log-level when executing some code - see this in use in the same file, in the Line 148 in 0989fdd
Adding that to the offending line in the recursive aggregation should clean up the log. |
It seems to be indeed this line - however decorating the line with Do I need to specify the logger-instance? I'm a bit confused as the usage should be exactly the same like in Line 148 |
Now that I'm looking at it, I'm wondering if this even works as intended for the aggregate_region() function... Indeed, the
Or even nicer, update the function
|
When using the recursive aggregation with one of the two lines
I most of the time get a (or lots of) warning(s)
either from pyam.core or from pyam.utils.
Functionally it's not a problem, but it's quite annoying as it fills up the output and makes it hard to see any other - potentially important - print statements. So it would be nice to either hide the warning completely when using recursive aggregation or to generally add a keyword in the aggregate-function to hide these warnings.
Or, one could look deeper into it and see if the recursive-aggregation is doing unnecessary aggregations and eliminate them.
The text was updated successfully, but these errors were encountered: