Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flixopt/transform_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def build_cluster_weights(self) -> xr.DataArray:
Returns:
DataArray with dims [cluster, period?, scenario?].
"""
return self._unrename(self._agg_result.cluster_weights.rename('cluster_weight'))
return self._unrename(self._agg_result.cluster_counts.rename('cluster_weight'))

def build_typical_periods(self) -> dict[str, xr.DataArray]:
"""Build typical periods DataArrays with (cluster, time, ...) shape.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ tutorials = [

# Full feature set (everything except dev tools)
full = [
"tsam_xarray >= 0.6.1, < 1", # Time series aggregation for clustering (wraps tsam); 0.6.1 adds aggregate(cluster_on=)
"tsam_xarray >= 0.6.5, < 1", # Time series aggregation for clustering (wraps tsam); 0.6.5 renames cluster_weights to cluster_counts
"tsam >= 3.4.0, < 4", # Directly imported for ClusterConfig, ExtremeConfig, SegmentConfig
"pyvis==0.3.2", # Visualizing FlowSystem Network
"scipy >= 1.15.1, < 2", # Used by tsam. Prior versions have conflict with highspy. See https://github.com/scipy/scipy/issues/22257
Expand All @@ -87,7 +87,7 @@ full = [
# Development tools and testing
dev = [
"xarray<2026.8", # TODO: drop once linopy ships xarray 2026.3+ compat fix
"tsam_xarray==0.6.1", # Time series aggregation for clustering (wraps tsam)
"tsam_xarray==0.6.5", # Time series aggregation for clustering (wraps tsam)
"tsam==3.4.0", # Directly imported for ClusterConfig, ExtremeConfig, SegmentConfig
"pytest==9.1.1",
"pytest-xdist==3.8.0",
Expand Down
Loading