Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

FIX: Fix bug with nodepath python 3.12 issues #260

Merged
merged 7 commits into from
Oct 17, 2023

Conversation

mgrover1
Copy link
Contributor

@mgrover1 mgrover1 commented Oct 17, 2023

This fixes a subclassing issue with the NodePath class currently implemented in datatree. This also adds a test for the NodePath class, and adds tests for python 3.12. A check for python version is used to ensure backwards compatibility.

@mgrover1
Copy link
Contributor Author

@TomNicholas - this should be ready for review. I added tests here along with the fix, and updated the CI workflow.

Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

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

This is great @mgrover1 ! Thank you so much.

.github/workflows/main.yaml Show resolved Hide resolved
datatree/treenode.py Show resolved Hide resolved
datatree/treenode.py Show resolved Hide resolved
@mgrover1
Copy link
Contributor Author

This is great @mgrover1 ! Thank you so much.

Absolutely! Thanks for all the suggestions - I incorporated those, and it should be good to go after the CI passes.

@mgrover1 mgrover1 mentioned this pull request Oct 17, 2023
@TomNicholas TomNicholas merged commit c059fb0 into xarray-contrib:main Oct 17, 2023
flamingbear pushed a commit to flamingbear/rewritten-datatree that referenced this pull request Jan 19, 2024
…#260

* ADD: Add test support for python 3.12

* ADD: Add to whats new doc

* Apply suggestions from review

Co-authored-by: Tom Nicholas <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* FIX: Add 3.12 to dev build

---------

Co-authored-by: Tom Nicholas <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests for python 3.12 Bug with Python 3.12
2 participants