Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Feb 19, 2024
1 parent 50ce452 commit 48d487d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions etrago/cluster/electrical.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 48d487d

Please sign in to comment.