Skip to content

Add tests for grdfilter - #809

Merged
seisman merged 16 commits into
GenericMappingTools:masterfrom
willschlitzer:test-grdfilter
Jan 30, 2021
Merged

seisman merged 16 commits into
GenericMappingTools:masterfrom
willschlitzer:test-grdfilter

Conversation

@willschlitzer

@willschlitzer willschlitzer commented Jan 28, 2021 •

Copy link
Copy Markdown
Contributor

This pull request adds tests for the grdfilter function in grdops.py.

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.

Notes

  • You can write /format in the first line of a comment to lint the code automatically

@willschlitzer willschlitzer added the maintenance Boring but important stuff for the core devs label Jan 28, 2021
@willschlitzer willschlitzer added this to the 0.3.0 milestone Jan 28, 2021
@willschlitzer
willschlitzer marked this pull request as ready for review January 28, 2021 10:11
@seisman

seisman commented Jan 28, 2021

Copy link
Copy Markdown
Member

@willschlitzer Just a quick comment. When opening a PR, please use the PR template, so we can have the PR checklist.

@willschlitzer

Copy link
Copy Markdown
Contributor Author

@seisman Sorry about that.

Comment thread pygmt/tests/test_grdfilter.py Resolved
Comment thread pygmt/tests/test_grdfilter.py Resolved
@seisman

seisman commented Jan 28, 2021

Copy link
Copy Markdown
Member

It would be better if you can add two more checks:

  • grid file in, grid file out
  • grid file in, xr.DataArray out.

@willschlitzer

Copy link
Copy Markdown
Contributor Author

@seisman Added the two additional tests.

Comment thread pygmt/tests/test_grdfilter.py Resolved
Comment thread pygmt/tests/test_grdfilter.py Resolved
Comment thread pygmt/tests/test_grdfilter.py Resolved

@seisman seisman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This PR looks good to me.

I'll keep this PR unmerged for two more days so that @GenericMappingTools/python @GenericMappingTools/python-maintainers can give it a final review.

@seisman seisman changed the title Add grdfilter tests Add tests for grdfilter Jan 28, 2021

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great!

@seisman
seisman merged commit a828f73 into GenericMappingTools:master Jan 30, 2021
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
@willschlitzer
willschlitzer deleted the test-grdfilter branch January 15, 2026 14:50

This branch was previously deployed

1 inactive deployment
Preview — 89d46dd3 Deployed Jan 30, 2021 by vercel[bot]
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.

3 participants