Skip to content

BREAKING: Figure: Raise GMTParameterError for deprecated parameters U/X/Y/timestamp/xshift/yshift. Previously raise GMTInvalidInput - #4400

Merged
seisman merged 3 commits into
mainfrom
parametererror/UXY
Feb 13, 2026
Merged

seisman merged 3 commits into
mainfrom
parametererror/UXY

Conversation

@seisman

@seisman seisman commented Feb 9, 2026

Copy link
Copy Markdown
Member

See #3707 (comment) for context. When deprecated parameters U/X/Y/timestamp/xshift/yshift are used, it makes sense to raise GMTParameterError with custom error messages.

In [1]: import pygmt

In [2]: fig = pygmt.Figure()

In [3]: fig.basemap(region=[0, 10, 0, 10], frame=True, projection="X10c", U=True)

GMTParameterError: Parameters 'U' and 'timestamp' are no longer supported since v0.12.0. Use Figure.timestamp() instead.

@seisman seisman added this to the 0.19.0 milestone Feb 9, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. labels Feb 9, 2026
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. final review call This PR requires final review and approval from a second reviewer labels Feb 12, 2026
@seisman
seisman merged commit d26c16c into main Feb 13, 2026
27 of 34 checks passed
@seisman
seisman deleted the parametererror/UXY branch February 13, 2026 04:42
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.

1 participant