From fef99904e3018d0ceabf574078434d6bb624865e Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Fri, 16 Aug 2024 14:56:27 +0200 Subject: [PATCH] Add cluster strategy for scn_name --- etrago/cluster/spatial.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etrago/cluster/spatial.py b/etrago/cluster/spatial.py index 0dbbabe3..36b33e04 100755 --- a/etrago/cluster/spatial.py +++ b/etrago/cluster/spatial.py @@ -110,7 +110,7 @@ def sum_with_inf(x): def strategies_buses(): - return {"geom": nan_links, "country": "first"} + return {"geom": nan_links, "country": "first", "scn_name": "first",} def strategies_lines(): @@ -120,6 +120,7 @@ def strategies_lines(): "topo": "first", "country": "first", "total_cables": np.sum, + "scn_name": "first", }