From 5829ab5804515add6c77cf2ba613fd8b884babd4 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Fri, 12 Apr 2024 06:57:19 +0000 Subject: [PATCH] Black reformating --- pathways/pathways.py | 46 +++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 22 deletions(-) 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}