Skip to content
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

Region aggregation fails for wildcard variables #444

Closed
phackstock opened this issue Dec 19, 2024 · 0 comments · Fixed by #448
Closed

Region aggregation fails for wildcard variables #444

phackstock opened this issue Dec 19, 2024 · 0 comments · Fixed by #448
Labels
bug Something isn't working

Comments

@phackstock
Copy link
Contributor

phackstock commented Dec 19, 2024

This dict lookup fails because we don't have an exact match:

def vars_default_args(self, variables: list[str]) -> list[VariableCode]:
"""return subset of variables which does not feature any special pyam
aggregation arguments and where skip_region_aggregation is False"""
return [
self[var]
for var in variables
if not self[var].agg_kwargs and not self[var].skip_region_aggregation
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant