Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Dec 21, 2024
1 parent b929335 commit 6276a95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions premise/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down Expand Up @@ -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"]:
Expand Down Expand Up @@ -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}. "
Expand Down
2 changes: 1 addition & 1 deletion premise/external_data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 1 addition & 3 deletions premise/pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6276a95

Please sign in to comment.