Skip to content

Conversation

@Chuan1937
Copy link
Contributor

Add GMTParameterError and deprecate GMTInvalidInput.

@seisman
This is the first PR of #4003

@Chuan1937 Chuan1937 requested a review from seisman January 28, 2026 10:27
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@seisman seisman marked this pull request as draft January 28, 2026 11:06
… input

update source files to support the new feature
@Chuan1937 Chuan1937 requested a review from seisman January 28, 2026 11:37
@Chuan1937 Chuan1937 changed the title Add GMTParameterError and deprecate GMTInvalidInput Add GMTParameterError and update source files Jan 28, 2026
Chuan1937 and others added 2 commits January 29, 2026 12:25
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@Chuan1937 Chuan1937 requested a review from seisman January 29, 2026 04:50
Comment on lines +155 to +160
if isinstance(required, str):
required = {required}
msg.append(
"Required parameter(s) are missing: "
f"{', '.join(repr(par) for par in required)}."
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if isinstance(required, str):
required = {required}
msg.append(
"Required parameter(s) are missing: "
f"{', '.join(repr(par) for par in required)}."
)
if isinstance(required, str):
msg.append(f"Required parameter is missing: {par!r}.")
else:
msg.append(
"Required parameters are missing: "
f"{', '.join(repr(par) for par in required)}."
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants