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 — Figure.plot/Figure.plot3d: Improve the check of the "style" parameter for "v" or "V" by seisman · Pull Request #3603 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented Nov 8, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

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".

Sorry, something went wrong.

Uh oh!

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

All reactions
@seisman
Figure.plot/Figure.plot3d: Allow the 'style' parameter to be an empty…
a541aa4
… string
@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
Merge branch 'main' into bug/plot
a1a0e0a
@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
weiji14
weiji14 approved these changes Nov 11, 2024
View reviewed changes

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this 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.

Sorry, something went wrong.

Uh oh!

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

All reactions
@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
@seisman
seisman deleted the bug/plot branch November 11, 2024 22:38
seisman added a commit that referenced this pull request Nov 18, 2024
@seisman
Figure.plot/Figure.plot3d: Improve the check of the "style" parameter…
e2e29a1
… for "v" or "V" (#3603)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@weiji14 weiji14 weiji14 approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

0.14.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

@seisman @weiji14
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.