Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply black #671

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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