From c65f07992f93961a4cee5edc9280408b001ef16f Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Tue, 2 Apr 2024 07:03:25 +0000 Subject: [PATCH] Black reformating --- pathways/pathways.py | 24 +++++++++++++----------- pathways/utils.py | 6 +----- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/pathways/pathways.py b/pathways/pathways.py index 4a58f07..d2f97d2 100644 --- a/pathways/pathways.py +++ b/pathways/pathways.py @@ -947,17 +947,19 @@ def fill_in_result_array(self, results: dict): except: print("summed data shape", summed_data.shape) - print(self.lca_results.loc[ - { - "region": region, - "model": model, - "scenario": scenario, - "year": year, - "act_category": cat, - "location": loc, - "variable": list(variables.keys()), - } - ].shape) + print( + self.lca_results.loc[ + { + "region": region, + "model": model, + "scenario": scenario, + "year": year, + "act_category": cat, + "location": loc, + "variable": list(variables.keys()), + } + ].shape + ) def characterize_planetary_boundaries( self, diff --git a/pathways/utils.py b/pathways/utils.py index 7ce8ddc..347dbf0 100644 --- a/pathways/utils.py +++ b/pathways/utils.py @@ -210,11 +210,7 @@ def create_lca_results_array( } if use_distributions is True: - coords.update( - { - "quantile": [0.05, 0.5, 0.95] - } - ) + coords.update({"quantile": [0.05, 0.5, 0.95]}) dims = ( len(coords["act_category"]),