Skip to content

Conversation

@Chuan1937
Copy link
Contributor

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}'

modified files for grdclip, grdfill, grdgradient,test_grdclip, test_grdfill, test_grdgradient
@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
Copy link
Member

seisman commented Feb 1, 2026

Also need to update coast.py and dimfilter.py

Chuan1937 and others added 4 commits February 1, 2026 17:18
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Chuan1937 and others added 5 commits February 1, 2026 17:49
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@Chuan1937 Chuan1937 requested a review from seisman February 1, 2026 10:07
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@Chuan1937 Chuan1937 requested a review from seisman February 2, 2026 03:02
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Feb 2, 2026
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@seisman seisman merged commit 224bf18 into GenericMappingTools:main Feb 2, 2026
18 of 20 checks passed
@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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants