GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BREAKING: Raise GMTParameterError exception for at_least_one parameters. Previously raise GMTInvalidInput by Chuan1937 · Pull Request #4380 · GenericMappingTools/pygmt

Conversation

@Chuan1937

@Chuan1937 Chuan1937 commented Jan 31, 2026

Copy link
Copy Markdown
Member

Add GMTParameterError:at_least_one

@seisman
This is the second PR of #4003

Error types Preferred Parameter Name Alternative Parameter Names Error Message Template
Required required must_have, needed Missing required parameter: '{param}'
Missing required parameters: '{a}', '{b}'
At least one is required at_least_one need_one_of, , , any_of``one_of``required_any Missing required parameters: '{a}', '{b}', '{c}'. Must specify at least one.
Must specify at least one of the parameters: '{a}', '{b}', '{c}'
Exactly one is required exactly_one mutually_exclusive Mutually exclusive parameters: '{a}', '{b}', '{c}'. Specify exactly one.
At most one at_most_one mutually_exclusive Mutually exclusive parameters: '{a}', '{b}', '{c}'. Specify at most one
Conflicting conflicts_with conflicts, incompatible_with Conflicting parameters: '{a}' cannot be used with '{b}', '{c}'

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Chuan1937
add Error types to exceptions.py:At least one is required
d921506
modified files for grdclip, grdfill, grdgradient,test_grdclip, test_grdfill, test_grdgradient
seisman
seisman reviewed Feb 1, 2026
View reviewed changes
Comment thread pygmt/exceptions.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pygmt/src/grdclip.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pygmt/src/grdfill.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

seisman
seisman reviewed Feb 1, 2026
View reviewed changes
Comment thread pygmt/src/grdgradient.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@seisman seisman added the maintenance Boring but important stuff for the core devs label Feb 1, 2026
@seisman seisman added this to the 0.19.0 milestone Feb 1, 2026
@seisman

seisman commented Feb 1, 2026

Copy link
Copy Markdown
Member

Also need to update coast.py and dimfilter.py

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Xingchen He and others added 4 commits February 1, 2026 17:18
Xingchen He @seisman
Update pygmt/exceptions.py
bd70855
Co-authored-by: Dongdong Tian <[email protected]>
Xingchen He @seisman
Update pygmt/src/grdclip.py
2fff8a2
Co-authored-by: Dongdong Tian <[email protected]>
Xingchen He @seisman
Update pygmt/src/grdfill.py
64463dc
Co-authored-by: Dongdong Tian <[email protected]>
Xingchen He @seisman
Update pygmt/src/grdgradient.py
097822b
Co-authored-by: Dongdong Tian <[email protected]>
seisman
seisman reviewed Feb 1, 2026
View reviewed changes
Comment thread pygmt/src/grdgradient.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pygmt/src/grdfill.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pygmt/src/grdclip.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Xingchen He and others added 5 commits February 1, 2026 17:49
Xingchen He @seisman
Update pygmt/src/grdgradient.py
026f5ff
Co-authored-by: Dongdong Tian <[email protected]>
Xingchen He @seisman
Update pygmt/src/grdfill.py
cb961e1
Co-authored-by: Dongdong Tian <[email protected]>
Xingchen He @seisman
Update pygmt/src/grdclip.py
095fa1e
Co-authored-by: Dongdong Tian <[email protected]>
@Chuan1937
modified coast,dimfilter and update layout of others
484d102
@Chuan1937
Merge branch 'main' into feat/at_least_one_parameter_validation
187f59c
@Chuan1937
Chuan1937 requested a review from seisman February 1, 2026 10:07
seisman
seisman reviewed Feb 1, 2026
View reviewed changes
Comment thread pygmt/exceptions.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Xingchen He @seisman
Update pygmt/exceptions.py
08bd9f1
Co-authored-by: Dongdong Tian <[email protected]>
seisman
seisman reviewed Feb 1, 2026
View reviewed changes
Comment thread pygmt/exceptions.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Chuan1937
modified language statement
74a04ec
@Chuan1937
Chuan1937 requested a review from seisman February 2, 2026 03:02
seisman
seisman reviewed Feb 2, 2026
View reviewed changes
Comment thread pygmt/exceptions.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Xingchen He @seisman
Update pygmt/exceptions.py
f911ea8
Co-authored-by: Dongdong Tian <[email protected]>
seisman
seisman reviewed Feb 2, 2026
View reviewed changes
Comment thread pygmt/src/grdfill.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Feb 2, 2026
Xingchen He @seisman
Update pygmt/src/grdfill.py
e766516
Co-authored-by: Dongdong Tian <[email protected]>
seisman
seisman approved these changes Feb 2, 2026
View reviewed changes
Xingchen He
Merge branch 'main' into feat/at_least_one_parameter_validation
d844b48
@seisman
seisman merged commit 224bf18 into GenericMappingTools:main Feb 2, 2026
16 of 18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Feb 2, 2026
@Chuan1937
Chuan1937 deleted the feat/at_least_one_parameter_validation branch February 2, 2026 14:01
This was referenced Feb 6, 2026
GMTParameterError: Pass a list rather than a set to ensure parameter order do not change #4390
Merged
Add new exceptions for invalid inputs and deprecate GMTInvalidInput exception #3707
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@seisman seisman seisman approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

maintenance Boring but important stuff for the core devs

Projects

None yet

Milestone

0.19.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Chuan1937 @seisman
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.