Skip to content

Commit 10095b4

Browse files
FBumannclaude
andcommitted
fix: pin xarray below 2026.3 for linopy compatibility
xarray 2026.3+ breaks the Dataset constructor in ways linopy still relies on, causing TypeError: "Passing a Dataset as data_vars to the Dataset constructor is not supported" across the test suite. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 633a59e commit 10095b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = [
3434
# Core scientific computing
3535
"numpy >= 1.21.5, < 3",
3636
"pandas >= 2.0.0, < 3",
37-
"xarray >=2024.2.0, <2026.5", # CalVer: allow through next calendar year
37+
"xarray >=2024.2.0, <2026.3", # TODO: revert to <2026.5 once linopy releases xarray 2026.3+ compat fix
3838
# Optimization and data handling
3939
"linopy >=0.5.1, <0.7", # Widened from patch pin to minor range
4040
"netcdf4 >=1.6.1, <1.7.5", # 1.7.4 missing wheels, revert to < 2 later

0 commit comments

Comments
 (0)