Skip to content

Reorganize GMTDataArrayAccessor to the pygmt.xarray module - #3928

Merged
seisman merged 4 commits into
mainfrom
xarray/accessor
Apr 28, 2025
Merged

Reorganize GMTDataArrayAccessor to the pygmt.xarray module#3928
seisman merged 4 commits into
mainfrom
xarray/accessor

Conversation

@seisman

@seismanseisman commented Apr 26, 2025

Copy link
Copy Markdown
Member

Address #3919 (comment).

This PR moves the pygmt/accessors.py to pygmt/xarray/accessor.py [singular vs plural] and also moves GMTDataArrayAccessor to the "Xarray Integration" section in the docs.

Preview: https://pygmt-dev--3928.org.readthedocs.build/en/3928/api/index.html#xarray-integration

@seismanseisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Apr 26, 2025
@seismanseisman added this to the 0.16.0 milestone Apr 26, 2025
@seisman
seisman requested a review from weiji14April 26, 2025 02:17
@weiji14

Copy link
Copy Markdown
Member

Probably should also rename test_accessor.py to test_xarray_accessor.py?

@seisman

Copy link
Copy Markdown
MemberAuthor

Done

@weiji14weiji14 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, and rename the test function names from def test_accessor_* to def test_xarray_accessor_*? Not compulsory though.

@seisman
seisman merged commit 4bbc37e into mainApr 28, 2025
@seisman
seisman deleted the xarray/accessor branch April 28, 2025 07:22
@seismanseisman removed the needs review This PR has higher priority and needs review. label Apr 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenanceBoring but important stuff for the core devsskip-changelogSkip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@seisman@weiji14