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 — Fix the bug for passing text strings with numeric values by seisman · Pull Request #3804 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented Feb 12, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Changes in this PR:

  • Add a test test_text_numeric_text for the regression bug reported in The fig.text function in PyGMT does not plot text if the text is purely numeric in pygmt 0.14.1 #3803
  • Do not try to convert strings into np.datetime64
  • Remove the failing test in test_clib_to_numpy and add the new test test_to_numpy_python_datetime_string

Fixes #3803.

Sorry, something went wrong.

Uh oh!

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

All reactions
seisman added 3 commits February 12, 2025 22:39
@seisman
Add a regression text for passing strings with numeric values
4d0b45f
@seisman
Do not try to convert string array to np.datetime64 dtype
eb310c8
@seisman
Fix the _to_numpy test for datetime strings
6f825cd
@github-actions

github-actions Bot commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added pygmt/tests/baseline/test_text_numeric_text.png

Image diff(s)

Details

Added images

  • test_text_numeric_text.png

Modified images

Path Old New

Report last updated at commit 6f825cd

All reactions

Sorry, something went wrong.

Uh oh!

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

@seisman seisman mentioned this pull request Feb 12, 2025
The fig.text function in PyGMT does not plot text if the text is purely numeric in pygmt 0.14.1 #3803
Closed
@seisman seisman added the bug Something isn't working label Feb 12, 2025
@seisman seisman added this to the 0.15.0 milestone Feb 12, 2025
@seisman
seisman marked this pull request as ready for review February 12, 2025 16:07
@seisman seisman added the needs review This PR has higher priority and needs review. label Feb 13, 2025
@seisman
seisman requested a review from a team February 13, 2025 12:59
weiji14
weiji14 approved these changes Feb 13, 2025
View reviewed changes
@seisman
seisman merged commit a4a1676 into main Feb 13, 2025
@seisman
seisman deleted the fix/3803 branch February 13, 2025 23:19
@seisman seisman removed the needs review This PR has higher priority and needs review. label Feb 13, 2025
@seisman seisman mentioned this pull request Feb 14, 2025
Release PyGMT v0.14.2 #3807
Closed
19 of 26 tasks
seisman added a commit that referenced this pull request Feb 14, 2025
@seisman
Fix the bug for passing text strings with numeric values (#3804)
fc39ef6
* Add a regression text for passing strings with numeric values

* Do not try to convert string array to np.datetime64 dtype

* Fix the _to_numpy test for datetime strings
@seisman seisman mentioned this pull request Feb 14, 2025
Fix the bug for passing text strings with numeric values (#3804) #3808
Merged
@seisman seisman modified the milestones: 0.15.0, 0.16.0, 0.14.2 Feb 14, 2025
seisman added a commit that referenced this pull request Feb 14, 2025
@seisman
Fix the bug for passing text strings with numeric values (#3804)
bdb08a3
* Add a regression text for passing strings with numeric values

* Do not try to convert string array to np.datetime64 dtype

* Fix the _to_numpy test for datetime strings
@seisman seisman mentioned this pull request Feb 14, 2025
Release drafter only adds PRs merged since the latest release #3793
Closed
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.2

Development

Successfully merging this pull request may close these issues.

The fig.text function in PyGMT does not plot text if the text is purely numeric in pygmt 0.14.1

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 01402792 — 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.