Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Apr 23, 2024
1 parent 34cb40c commit 4b464ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions etrago/cluster/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
flatten_multiindex,
get_clustering_from_busmap,
)
from shapely.geometry import Point
from sklearn.cluster import KMeans
from threadpoolctl import threadpool_limits
import geopandas as gpd
import networkx as nx
import numpy as np
import pandas as pd
Expand Down
6 changes: 3 additions & 3 deletions etrago/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2995,7 +2995,7 @@ def select_elec_network(etrago, apply_on="grid_model"):
].index
if apply_on == "grid_model-ehv":
n_clusters = pd.NA
# Exclude foreign buses when it is set to don't include them in clustering
#Exclude foreign buses when set to don't include them in clustering
elif settings["cluster_foreign_AC"]:
n_clusters = settings["n_clusters_AC"]
else:
Expand All @@ -3021,8 +3021,8 @@ def select_elec_network(etrago, apply_on="grid_model"):
)
assert (
n_clusters > 1
), f"""'n_clusters_AC' must be greater than the number of foreign
countries({num_neighboring_country})"""
), f"""'n_clusters_AC' must be greater than the number of
foreign countries({num_neighboring_country})"""

elec_network = network_based_on_buses(
etrago.network, elec_network_buses
Expand Down

0 comments on commit 4b464ff

Please sign in to comment.