Skip to content

Commit 3a0bb4a

Browse files
authored
Unpin xarray (#638)
* Unpin xarray * Restore commodity dimension after being dropped by interp
1 parent c192282 commit 3a0bb4a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
"numpy>=2.0",
2929
"scipy>=1.13",
3030
"pandas>=2.2",
31-
"xarray>=2024.6,<=2024.11",
31+
"xarray>=2024.6",
3232
"bottleneck>=1.4",
3333
"coloredlogs",
3434
"toml",

src/muse/readers/toml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,4 +754,5 @@ def read_technodata(
754754

755755
year = sorted(set(time_framework).union(technologies.year.data.tolist()))
756756
technologies = technologies.interp(year=year, method=interpolation_mode)
757+
technologies = technologies.set_index(commodity="commodity") # See PR #638
757758
return technologies

0 commit comments

Comments
 (0)