Skip to content

Commit 8595f78

Browse files
committed
bugfix: safe aggregation of cluster heat buses (cf. pandas-dev/pandas#54161)
1 parent fb2c381 commit 8595f78

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

scripts/prepare_sector_network.py

+23-23
Original file line numberDiff line numberDiff line change
@@ -4100,30 +4100,30 @@ def limit_individual_line_extension(n, maxext):
41004100

41014101

41024102
aggregate_dict = {
4103-
"p_nom": "sum",
4104-
"s_nom": "sum",
4105-
"v_nom": "max",
4106-
"v_mag_pu_max": "min",
4107-
"v_mag_pu_min": "max",
4108-
"p_nom_max": "sum",
4109-
"s_nom_max": "sum",
4110-
"p_nom_min": "sum",
4111-
"s_nom_min": "sum",
4112-
"v_ang_min": "max",
4113-
"v_ang_max": "min",
4114-
"terrain_factor": "mean",
4115-
"num_parallel": "sum",
4116-
"p_set": "sum",
4117-
"e_initial": "sum",
4118-
"e_nom": "sum",
4119-
"e_nom_max": "sum",
4120-
"e_nom_min": "sum",
4121-
"state_of_charge_initial": "sum",
4122-
"state_of_charge_set": "sum",
4123-
"inflow": "sum",
4103+
"p_nom": pd.Series.sum,
4104+
"s_nom": pd.Series.sum,
4105+
"v_nom": pd.Series.max,
4106+
"v_mag_pu_max": pd.Series.min,
4107+
"v_mag_pu_min": pd.Series.max,
4108+
"p_nom_max": pd.Series.sum,
4109+
"s_nom_max": pd.Series.sum,
4110+
"p_nom_min": pd.Series.sum,
4111+
"s_nom_min": pd.Series.sum,
4112+
"v_ang_min": pd.Series.max,
4113+
"v_ang_max": pd.Series.min,
4114+
"terrain_factor": pd.Series.mean,
4115+
"num_parallel": pd.Series.sum,
4116+
"p_set": pd.Series.sum,
4117+
"e_initial": pd.Series.sum,
4118+
"e_nom": pd.Series.sum,
4119+
"e_nom_max": pd.Series.sum,
4120+
"e_nom_min": pd.Series.sum,
4121+
"state_of_charge_initial": pd.Series.sum,
4122+
"state_of_charge_set": pd.Series.sum,
4123+
"inflow": pd.Series.sum,
41244124
"p_max_pu": "first",
4125-
"x": "mean",
4126-
"y": "mean",
4125+
"x": pd.Series.mean,
4126+
"y": pd.Series.mean,
41274127
}
41284128

41294129

0 commit comments

Comments
 (0)