Skip to content

Commit dded05c

Browse files
committed
using isort and black
1 parent 119ea5d commit dded05c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

examples/loma-14a.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ def prepare_edisgo_for_14a(edisgo, *, shapefile_path, output_dir):
227227
edisgo.topology.buses_df.index != "HV_dummy_bus"
228228
]
229229

230-
integrate_ev_and_hp_for_14a(edisgo, shapefile_path=shapefile_path, output_dir=output_dir)
230+
integrate_ev_and_hp_for_14a(
231+
edisgo, shapefile_path=shapefile_path, output_dir=output_dir
232+
)
231233

232234
# Set Zero active power for batteries (let the OPF optimize dispatch freely)
233235
storage_names = edisgo.topology.storage_units_df.index
@@ -239,9 +241,7 @@ def prepare_edisgo_for_14a(edisgo, *, shapefile_path, output_dir):
239241
)
240242

241243
hp_names = list(
242-
edisgo.topology.loads_df[
243-
edisgo.topology.loads_df["type"] == "heat_pump"
244-
].index
244+
edisgo.topology.loads_df[edisgo.topology.loads_df["type"] == "heat_pump"].index
245245
)
246246
timeindex = edisgo.timeseries.timeindex
247247
cop = 3.0 # flat synthetic COP
@@ -250,7 +250,9 @@ def prepare_edisgo_for_14a(edisgo, *, shapefile_path, output_dir):
250250
index=timeindex,
251251
columns=hp_names,
252252
)
253-
edisgo.heat_pump.heat_demand_df = edisgo.timeseries.loads_active_power[hp_names] * cop
253+
edisgo.heat_pump.heat_demand_df = (
254+
edisgo.timeseries.loads_active_power[hp_names] * cop
255+
)
254256

255257
edisgo.set_time_series_reactive_power_control()
256258

@@ -264,7 +266,7 @@ def main():
264266
# "/home/carlos/LoMa/exec_folder/data/Input_files/MV_grid_district/husum_district.shp"
265267
# )
266268

267-
#MGB paths
269+
# MGB paths
268270
grid_path = "/home/carlos/LoMa/exec_folder/results/MGB_SLP_CP_pypsa"
269271
path_husum_district_shp = "/home/carlos/LoMa/exec_folder/MGB_district"
270272

0 commit comments

Comments
 (0)