Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jul 30, 2024
1 parent dababd6 commit 0a38db6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions premise/wind_turbines.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ def _update_wind_turbines(scenario, version, system_model):


def relink(
dataset,
dataset,
) -> dict:
"""
Relink technosphere exchanges to the new datasets.
"""

for exc in ws.technosphere(
dataset,
dataset,
ws.equals("unit", "unit"),
ws.exclude(ws.contains("name", "connection"))
ws.exclude(ws.contains("name", "connection")),
):
exc["name"] += ", direct drive"

Expand Down Expand Up @@ -106,13 +106,8 @@ def create_direct_drive_turbines(self):
new_datasets, processed = [], []
for dataset in ws.get_many(
self.database,
ws.either(
*[
ws.contains("name", tech)
for tech in datasets_terms
]
),
ws.exclude(ws.contains("name", "direct drive"))
ws.either(*[ws.contains("name", tech) for tech in datasets_terms]),
ws.exclude(ws.contains("name", "direct drive")),
):
if dataset["code"] not in processed:
dataset_copy = self.create_dataset_copy(dataset, "direct drive")
Expand Down

0 comments on commit 0a38db6

Please sign in to comment.