Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure.plot/Figure.plot3d: Improve the check of the "style" parameter for "v" or "V" #3603

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Nov 8, 2024

In GMT, when both symbol and size are read from files, the -S option can be specified without arguments. Thus, style="" or style=True should be valid.

However, currently we check kwargs.get("S") is not None and kwargs["S"][0] in "vV" which doesn't make sense if style is not a string or is an empty string.

This PR fixes the checking of the style parameter.

Strictly speaking, it's a bug, but I don't want to add one more test for such a minor change. So mark it as "maintenance" and "skip-changelog".

@seisman seisman added the bug Something isn't working label Nov 8, 2024
@seisman seisman added this to the 0.14.0 milestone Nov 8, 2024
@seisman seisman added needs review This PR has higher priority and needs review. maintenance Boring but important stuff for the core devs and removed bug Something isn't working labels Nov 11, 2024
@seisman seisman requested a review from a team November 11, 2024 04:48
@seisman seisman added the skip-changelog Skip adding Pull Request to changelog label Nov 11, 2024
@seisman seisman changed the title Figure.plot/Figure.plot3d: Fix the check for if "style" contains "v" or "V" Figure.plot/Figure.plot3d: Improve the check of the "style" parameter for "v" or "V" Nov 11, 2024
@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. labels Nov 11, 2024
Copy link
Member

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

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

Probably should still mark it as a bug so it appears in the changelog. We can skip adding a regression test.

@seisman seisman added bug Something isn't working and removed maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog final review call This PR requires final review and approval from a second reviewer labels Nov 11, 2024
@seisman seisman merged commit 763dc07 into main Nov 11, 2024
25 of 27 checks passed
@seisman seisman deleted the bug/plot branch November 11, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants