Skip to content

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 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
@seisman seisman merged commit cbae952 into main Aug 1, 2025
24 of 26 checks passed
@seisman seisman deleted the refactor/grdlandmask branch August 1, 2025 08:08
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Aug 1, 2025
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.

3 participants