From 4579467e8bdab11abd5d4ab352691e0db7edc21e Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Thu, 28 Sep 2023 09:40:30 +0200 Subject: [PATCH] Apply black --- etrago/tools/execute.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/etrago/tools/execute.py b/etrago/tools/execute.py index 28a90df7..ea643bf2 100755 --- a/etrago/tools/execute.py +++ b/etrago/tools/execute.py @@ -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") @@ -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