Skip to content

pygmt.grdlandmask: Refactor to use the new alias system for bordervalues/maskvalues #4031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

seisman
Copy link
Member

@seisman seisman commented Jul 30, 2025

With the new alias system, changes in PR #3963 is no longer needed.

Preview: https://pygmt-dev--4031.org.readthedocs.build/en/4031/api/generated/pygmt.grdlandmask.html

@seisman seisman added this to the 0.17.0 milestone Jul 30, 2025
@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 Jul 30, 2025
@seisman seisman requested a review from Copilot July 30, 2025 11:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the grdlandmask function to use the new alias system for handling bordervalues and maskvalues parameters instead of the previous manual sequence joining approach.

  • Replaces sequence_join with the new AliasSystem and Alias classes
  • Updates parameter handling to use the alias system's built-in validation and formatting
  • Removes manual parameter processing in favor of the standardized alias approach
Comments suppressed due to low confidence (1)

pygmt/src/grdlandmask.py:16

  • The sequence_join import is being removed but is still used in line 122. This will cause an ImportError at runtime.
    kwargs_to_strings,

@seisman seisman force-pushed the refactor/grdlandmask branch from 1cfb4ab to 00f0919 Compare July 31, 2025 06:41
@seisman seisman force-pushed the refactor/grdlandmask branch from 00f0919 to 7164163 Compare July 31, 2025 08:38
@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 Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
final review call This PR requires final review and approval from a second reviewer 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