Skip to content

Comments

Unpin xarray#638

Merged
tsmbland merged 8 commits intomainfrom
unpin_xarray
Mar 25, 2025
Merged

Unpin xarray#638
tsmbland merged 8 commits intomainfrom
unpin_xarray

Conversation

@tsmbland
Copy link
Collaborator

@tsmbland tsmbland commented Jan 23, 2025

For some reason, with new versions of xarray (from 2025.01.0 onwards), calling .interp on technologies causes the commodities dimension to be dropped as an indexable dimension, which means later on the program complains when trying to select technologies by commodity. Not sure if this is a bug or feature in xarray? Anyway, I've added a single line of code to fix this, which means xarray can now be unpinned

Fixes #625

@tsmbland tsmbland marked this pull request as ready for review March 24, 2025 17:57
@tsmbland tsmbland requested a review from dalonsoa March 24, 2025 17:57
@tsmbland tsmbland moved this to 👀 In review in MUSE Mar 24, 2025
Copy link
Collaborator

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's odd, but so be it. Maybe ask in the xarray repo if this is a feature or a bug.

@tsmbland tsmbland merged commit 3a0bb4a into main Mar 25, 2025
14 checks passed
@tsmbland tsmbland deleted the unpin_xarray branch March 25, 2025 09:01
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in MUSE Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

xarray pinned to <=2024.11

2 participants