Skip to content

Commit

Permalink
Merge pull request #671 from openego/fixes/run-black
Browse files Browse the repository at this point in the history
Apply black
  • Loading branch information
ClaraBuettner authored Sep 28, 2023
2 parents 1ceb4a6 + 4579467 commit c540989
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions etrago/tools/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,7 @@ def import_gen_from_links(network):
gas_to_add_orig = gas_to_add.copy()
gas_to_add.set_index("Generator", drop=True, inplace=True)
gas_to_add = gas_to_add[
gas_to_add.columns[
gas_to_add.columns.isin(network.generators.columns)
]
gas_to_add.columns[gas_to_add.columns.isin(network.generators.columns)]
]

network.import_components_from_dataframe(gas_to_add, "Generator")
Expand Down Expand Up @@ -608,9 +606,7 @@ def import_gen_from_links(network):

for attr, data in df_t.items():
if not data.empty:
network.import_series_from_dataframe(
data, "Generator", attr
)
network.import_series_from_dataframe(data, "Generator", attr)

return

Expand Down

0 comments on commit c540989

Please sign in to comment.