Skip to content

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

Merged
seisman merged 5 commits into
mainfrom
refactor/wiggle
Aug 17, 2025
Merged

seisman merged 5 commits into
mainfrom
refactor/wiggle

Conversation

@seisman

@seisman seisman commented Aug 10, 2025 •

Copy link
Copy Markdown
Member

@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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread pygmt/src/wiggle.py Resolved
Comment thread pygmt/src/wiggle.py Resolved
@seisman
seisman merged commit e9b4e5e into main Aug 17, 2025
@seisman
seisman deleted the refactor/wiggle branch August 17, 2025 03:59
@seisman seisman removed the needs review This PR has higher priority and needs review. label Aug 18, 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.

2 participants