Skip to content

Improved xarray accessor#1421

Merged
lkstrp merged 2 commits intoPyPSA:masterfrom
lkstrp:fix-1420
Oct 23, 2025
Merged

Improved xarray accessor#1421
lkstrp merged 2 commits intoPyPSA:masterfrom
lkstrp:fix-1420

Conversation

@lkstrp
Copy link
Copy Markdown
Member

@lkstrp lkstrp commented Oct 23, 2025

Closes #1420

Changes proposed in this Pull Request

Also added __slots__ for performance, tab completion with __dir__ and string representation.

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in docs.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes docs/release-notes.md of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@lkstrp lkstrp requested a review from coroa October 23, 2025 13:30
Copy link
Copy Markdown
Member

@coroa coroa left a comment

Choose a reason for hiding this comment

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

Implementation makes sense and if the tests are successful then pickling/unpickling also works again. Thank you

@lkstrp lkstrp enabled auto-merge (squash) October 23, 2025 13:46
@coroa
Copy link
Copy Markdown
Member

coroa commented Oct 23, 2025

Sorry,

Changed in version 3.12: Added delete_on_close parameter.

@lkstrp lkstrp merged commit 61fd757 into PyPSA:master Oct 23, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite recursion loop when unpickling a Network

2 participants