diff --git a/pathways/pathways.py b/pathways/pathways.py index b3019e6..c5a02a8 100644 --- a/pathways/pathways.py +++ b/pathways/pathways.py @@ -384,29 +384,31 @@ def calculate( } ) else: - results.update({ - (model, scenario, year): _calculate_year( - ( - model, - scenario, - year, - regions, - variables, - methods, - demand_cutoff, - self.filepaths, - self.mapping, - self.units, - self.lca_results, - self.classifications, - self.scenarios, - self.reverse_classifications, - self.debug, - use_distributions, + results.update( + { + (model, scenario, year): _calculate_year( + ( + model, + scenario, + year, + regions, + variables, + methods, + demand_cutoff, + self.filepaths, + self.mapping, + self.units, + self.lca_results, + self.classifications, + self.scenarios, + self.reverse_classifications, + self.debug, + use_distributions, + ) ) - ) - for year in years - }) + for year in years + } + ) # remove None values in results results = {k: v for k, v in results.items() if v is not None}