From 6276a95118382814f886a4d6454b79c09b432027 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Sat, 21 Dec 2024 21:08:57 +0000 Subject: [PATCH] Black reformating --- premise/external.py | 3 --- premise/external_data_validation.py | 2 +- premise/pathways.py | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/premise/external.py b/premise/external.py index f92933ce..73a0e699 100644 --- a/premise/external.py +++ b/premise/external.py @@ -1151,7 +1151,6 @@ def create_markets(self) -> None: # Open corresponding config file configuration = self.configurations[i] - # Check if information on market creation is provided if "markets" in configuration: for market_vars in configuration["markets"]: @@ -1372,7 +1371,6 @@ def create_markets(self) -> None: # check if there are variables that # relate to inefficiencies or losses - # check if we should add some additional exchanges if "add" in market_vars: for additional_exc in market_vars["add"]: @@ -1404,7 +1402,6 @@ def create_markets(self) -> None: self.add_to_index(new_market) market_status[region] = True - else: print( f"No suppliers found for {new_market['name']} in {region}. " diff --git a/premise/external_data_validation.py b/premise/external_data_validation.py index 094f3b7d..585da81e 100644 --- a/premise/external_data_validation.py +++ b/premise/external_data_validation.py @@ -562,7 +562,7 @@ def adjust_candidates_or_raise_error( duplicate_name = None if val.get("duplicate") is True: duplicate_name = val["original name"] - #duplicate_name = key[0] + # duplicate_name = key[0] key = (key[0].split("_")[0], key[1]) potential_candidates = identify_potential_candidates( diff --git a/premise/pathways.py b/premise/pathways.py index 2f57482d..d43654f5 100644 --- a/premise/pathways.py +++ b/premise/pathways.py @@ -270,9 +270,7 @@ def add_variables_mapping(self): print(f"Mask: {mask}") continue - variables = list( - val["production pathways"].keys() - ) + variables = list(val["production pathways"].keys()) variables.remove(var) # remove datasets which names are in list of variables # except for the current variable