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.meca: Add a test for passing event names via pandas.DataFrame #2582

Merged
merged 5 commits into from Jun 24, 2023

Conversation

seisman
Copy link
Member

@seisman seisman commented Jun 22, 2023

Description of proposed changes

See #2524 for context.

The failure is caused by an upstream bug, which was already fixed in GenericMappingTools/gmt#7557.

In this PR, I renamed the old test_meca_dict_eventname test to test_meca_eventname, and add a new test following #2524. The new test passes in the "GMT Tests Dev" workflow (https://github.com/GenericMappingTools/pygmt/actions/runs/5346800096) and is skipped in the "Tests" workflow (because it crashes with GMT 6.4)

Fixes #2524

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@seisman seisman marked this pull request as ready for review June 22, 2023 13:54
@seisman seisman added bug Something isn't working upstream Bug or missing feature of upstream core GMT labels Jun 22, 2023
@seisman seisman added this to the 0.10.0 milestone Jun 22, 2023
@seisman seisman added maintenance Boring but important stuff for the core devs and removed bug Something isn't working labels Jun 22, 2023
@seisman
Copy link
Member Author

seisman commented Jun 22, 2023

/test-gmt-dev

@seisman seisman added the needs review This PR has higher priority and needs review. label Jun 22, 2023
@seisman
Copy link
Member Author

seisman commented Jun 22, 2023

The "DVC image diff" workflow failure will be fixed in #2583

@github-actions
Copy link
Contributor

Summary of changed images

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

Status Path
renamed pygmt/tests/baseline/test_meca_dict_eventname.png -> pygmt/tests/baseline/test_meca_eventname.png

Image diff(s)

Added images

Modified images

Path Old New

Report last updated at commit 4208dda

@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 Jun 23, 2023
@seisman seisman merged commit dde23f1 into main Jun 24, 2023
14 checks passed
@seisman seisman deleted the eventname-pandas branch June 24, 2023 01:05
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 upstream Bug or missing feature of upstream core GMT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Figure.meca causes segmentation fault when given "event_name" via a DataFrame
3 participants