Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Dec 22, 2024
1 parent 2be4c90 commit a9d34a8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions premise/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,10 @@ def create_markets(self) -> None:
)

if (
self.year
in self.external_scenarios_data[i]["production volume"]
.coords["year"]
.values
self.year
in self.external_scenarios_data[i]["production volume"]
.coords["year"]
.values
):
production_volume = (
self.external_scenarios_data[i]["production volume"]
Expand All @@ -1195,9 +1195,9 @@ def create_markets(self) -> None:
)
else:
if self.year < min(
self.external_scenarios_data[i]["production volume"]
.coords["year"]
.values
self.external_scenarios_data[i]["production volume"]
.coords["year"]
.values
):
production_volume = (
self.external_scenarios_data[i]["production volume"]
Expand All @@ -1215,9 +1215,9 @@ def create_markets(self) -> None:
.values.item(0)
)
elif self.year > max(
self.external_scenarios_data[i]["production volume"]
.coords["year"]
.values
self.external_scenarios_data[i]["production volume"]
.coords["year"]
.values
):
production_volume = (
self.external_scenarios_data[i]["production volume"]
Expand Down Expand Up @@ -1405,7 +1405,7 @@ def create_markets(self) -> None:
# we create a World region
create_world_region = True
if len(regions) <= 1 or "World" in market_vars.get(
"except regions", []
"except regions", []
):
create_world_region = False

Expand Down

0 comments on commit a9d34a8

Please sign in to comment.