Skip to content

Figure.wiggle: Refactor the parameter fillpositive/fillnegative using the new alias system #4041

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 4 commits into
base: main
Choose a base branch
from

Conversation

seisman
Copy link
Member

@seisman seisman commented Aug 10, 2025

@seisman seisman added this to the 0.17.0 milestone Aug 10, 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 Aug 10, 2025
@seisman seisman requested a review from Copilot August 11, 2025 08:38
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 Figure.wiggle method to use PyGMT's new alias system for handling the fillpositive and fillnegative parameters. The changes simplify parameter processing by moving the fill logic into a dedicated parser function and utilizing the AliasSystem for parameter mapping.

  • Extracted fill parameter logic into a new _parse_fills helper function
  • Updated the alias decorator and AliasSystem to handle fillpositive/fillnegative parameters
  • Simplified docstring formatting for fill parameters

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 needs review This PR has higher priority and needs review. skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant