Skip to content

pygmt.grdsample: Migrate the 'translate' parameter to the new alias system - #4185

Merged
seisman merged 2 commits into
mainfrom
grdsample/translate
Nov 3, 2025
Merged

seisman merged 2 commits into
mainfrom
grdsample/translate

Conversation

@seisman

@seisman seisman commented Nov 2, 2025

Copy link
Copy Markdown
Member

No description provided.

@seisman seisman added this to the 0.18.0 milestone Nov 2, 2025
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog final review call This PR requires final review and approval from a second reviewer labels Nov 2, 2025
Comment thread pygmt/src/grdsample.py Resolved
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Nov 3, 2025
@seisman
seisman merged commit c74e4af into main Nov 3, 2025
@seisman
seisman deleted the grdsample/translate branch November 3, 2025 01:22
@seisman

seisman commented Nov 3, 2025

Copy link
Copy Markdown
Member Author

In addition to grdsample, there are other modules (grdedit, grdfilter, dimfilter) that also have the same option.

Currently, it's aliased to translate in grdsample, but is aliased to toggle in grdfilter. GMT recommends toggle/toggle_registration

https://github.com/GenericMappingTools/gmt/blob/21a81c7354a76e17584870f8ef0cf73ad5d23c1c/src/longopt/grdsample_inc.h#L30

Maybe we should use toggle consistently?

@weiji14

weiji14 commented Nov 3, 2025

Copy link
Copy Markdown
Member

Sure, toggle sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants