Skip to content

Commit

Permalink
Rename variables to save space
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Sep 26, 2019
1 parent c1dfeb9 commit f107db1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pyam/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,9 @@ def aggregate_region(self, variable, region='World', subregions=None,
with adjust_log_level():
region_df = self.filter(region=region)

rdf_components = region_df._variable_components(variable, level=None)
srdf_components = subregion_df._variable_components(variable,
level=None)
components = components or (
set(rdf_components).difference(srdf_components)
)
rdf_comps = region_df._variable_components(variable, level=None)
srdf_comps = subregion_df._variable_components(variable, level=None)
components = components or set(rdf_comps).difference(srdf_comps)

if len(components):
rows = region_df._apply_filters(variable=components)
Expand Down

0 comments on commit f107db1

Please sign in to comment.