Skip to content

pygmt.grdfill: Remove the private function _validate_params#4413

Merged
seisman merged 3 commits intomainfrom
grdfill/private
Feb 15, 2026
Merged

pygmt.grdfill: Remove the private function _validate_params#4413
seisman merged 3 commits intomainfrom
grdfill/private

Conversation

@seisman
Copy link
Member

@seisman seisman commented Feb 13, 2026

The private function _validate_params was introduced in PR #3880 to check for conflicting parameters, specifically the deprecated mode parameter alongside the newly added constantfill, gridfill, neighborfill, splinefill, and inquire options. This function was intended to simplify the main function's logic.

Now that the deprecated mode parameter has been removed, the validation logic in _validate_params has become minimal. The function can be merged into the main function without adding significant complexity, making the code more straightforward.

@seisman seisman added this to the 0.19.0 milestone Feb 13, 2026
@seisman seisman 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 Feb 13, 2026
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Feb 14, 2026
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Feb 15, 2026
@seisman seisman merged commit 2884144 into main Feb 15, 2026
20 of 23 checks passed
@seisman seisman deleted the grdfill/private branch February 15, 2026 01:10
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.

1 participant