Skip to content

Commit

Permalink
Define an explicit clustering strategy for v_nom
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatef committed Jul 21, 2024
1 parent 729fecf commit cefc09c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,13 @@ def consense(x):
update_config_dictionary(
config_dict=aggregation_strategies,
parameter_key_to_fill="lines",
dict_to_use={"geometry": "first", "bounds": "first"},
dict_to_use={"v_nom": "first", "geometry": "first", "bounds": "first"},
)
update_config_dictionary(
config_dict=aggregation_strategies,
parameter_key_to_fill="buses",
dict_to_use={
"v_nom": "first",
"lat": "mean",
"lon": "mean",
"tag_substation": "first",
Expand Down
3 changes: 2 additions & 1 deletion scripts/simplify_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,12 +993,13 @@ def merge_isolated_nodes(n, threshold, aggregation_strategies=dict()):
update_config_dictionary(
config_dict=aggregation_strategies,
parameter_key_to_fill="lines",
dict_to_use={"geometry": "first", "bounds": "first"},
dict_to_use={"v_nom": "first", "geometry": "first", "bounds": "first"},
)
update_config_dictionary(
config_dict=aggregation_strategies,
parameter_key_to_fill="buses",
dict_to_use={
"v_nom": "first",
"lat": "mean",
"lon": "mean",
"tag_substation": "first",
Expand Down

0 comments on commit cefc09c

Please sign in to comment.