From 48d487dc31cd4fdc165e825168aa892870540f5e Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Mon, 19 Feb 2024 10:29:02 +0100 Subject: [PATCH] Apply black --- etrago/cluster/electrical.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etrago/cluster/electrical.py b/etrago/cluster/electrical.py index 6735952e..4de65377 100755 --- a/etrago/cluster/electrical.py +++ b/etrago/cluster/electrical.py @@ -648,7 +648,9 @@ def unify_foreign_buses(etrago): return busmap_foreign -def preprocessing(etrago, used_for="spatial_clustering", apply_on="grid_model"): +def preprocessing( + etrago, used_for="spatial_clustering", apply_on="grid_model" +): """ Preprocesses an Etrago object to prepare it for network clustering. @@ -780,7 +782,9 @@ def preprocessing(etrago, used_for="spatial_clustering", apply_on="grid_model"): f"{used_for} is not a valid value for the used_for parameter" ) - network_elec, n_clusters = select_elec_network(etrago, include_foreign, apply_on=apply_on) + network_elec, n_clusters = select_elec_network( + etrago, include_foreign, apply_on=apply_on + ) if settings["method"] == "kmedoids-dijkstra": lines_col = network_elec.lines.columns