Skip to content

Commit 54a1d1a

Browse files
committed
Fix notebooks
1 parent de92e23 commit 54a1d1a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/notebooks/08d-clustering-multiperiod.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"fs_clustered = flow_system.transform.cluster(\n",
186186
" n_clusters=3,\n",
187187
" cluster_duration='1D',\n",
188-
" extremes=ExtremeConfig(method='new_cluster', max_value=peak_series),\n",
188+
" extremes=ExtremeConfig(method='replace', max_value=peak_series),\n",
189189
")\n",
190190
"\n",
191191
"time_clustering = timeit.default_timer() - start\n",
@@ -559,7 +559,7 @@
559559
"fs_clustered = fs.transform.cluster(\n",
560560
" n_clusters=10,\n",
561561
" cluster_duration='1D',\n",
562-
" extremes=ExtremeConfig(method='new_cluster', max_value=['Demand(Flow)|fixed_relative_profile']),\n",
562+
" extremes=ExtremeConfig(method='replace', max_value=['Demand(Flow)|fixed_relative_profile']),\n",
563563
")\n",
564564
"\n",
565565
"# Visualize clustering quality\n",

docs/notebooks/08f-clustering-segmentation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
" n_clusters=8,\n",
155155
" cluster_duration='1D',\n",
156156
" segments=SegmentConfig(n_segments=6), # 6 segments per day instead of 96 quarter-hours\n",
157-
" extremes=ExtremeConfig(method='new_cluster', max_value=['HeatDemand(Q_th)|fixed_relative_profile']),\n",
157+
" extremes=ExtremeConfig(method='replace', max_value=['HeatDemand(Q_th)|fixed_relative_profile']),\n",
158158
")\n",
159159
"\n",
160160
"time_clustering = timeit.default_timer() - start\n",

0 commit comments

Comments
 (0)