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

Add missing aliases to grd2xyz #1537

Merged
merged 10 commits into from
Oct 28, 2021
Merged

Add missing aliases to grd2xyz #1537

merged 10 commits into from
Oct 28, 2021

Conversation

willschlitzer
Copy link
Contributor

This is a follow up to #1284 and wraps additional parameters.

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 adding new functionality, add an example to docstrings or tutorials.

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

@willschlitzer willschlitzer added documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Sep 23, 2021
@willschlitzer willschlitzer added this to the 0.5.0 milestone Sep 23, 2021
@willschlitzer willschlitzer self-assigned this Sep 23, 2021
@willschlitzer willschlitzer marked this pull request as ready for review September 25, 2021 07:29
@willschlitzer willschlitzer changed the title Add optional parameters to grd2xyz Add missing aliases to grd2xyz Oct 5, 2021
pygmt/src/grd2xyz.py Outdated Show resolved Hide resolved
pygmt/src/grd2xyz.py Outdated Show resolved Hide resolved
R="region",
V="verbose",
W="weight",
Z="binary",
Copy link
Member

Choose a reason for hiding this comment

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

binary is already used as the name of a common option. Please select a different alias for Z and add b="binary".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to z_convention and added b

@willschlitzer willschlitzer mentioned this pull request Oct 7, 2021
35 tasks
Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
@weiji14 weiji14 mentioned this pull request Oct 21, 2021
5 tasks
@maxrjones maxrjones added the final review call This PR requires final review and approval from a second reviewer label Oct 27, 2021
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.

Just a few more common aliases to add, otherwise all good!

pygmt/src/grd2xyz.py Show resolved Hide resolved
pygmt/src/grd2xyz.py Show resolved Hide resolved
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
@seisman seisman merged commit 9e95a4e into main Oct 28, 2021
@seisman seisman deleted the add-params-grd2xyz branch October 28, 2021 06:50
@willschlitzer willschlitzer removed the final review call This PR requires final review and approval from a second reviewer label Dec 7, 2021
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants