-
Notifications
You must be signed in to change notification settings - Fork 224
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 common option aliases to COMMON_OPTIONS in decorators.py #1407
Conversation
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.
Just a few fullstops to add and one entry which needs extra indentation.
Co-authored-by: Wei Ji <[email protected]>
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.
Looks alright to me. Keen to get this in for PyGMT v0.4.1 too (before the ESWN workshop), but someone with a eye for detail should have another look.
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.
Looks fine to me! Great work @meghanrjones.
…MappingTools#1407) * Add binary alias * Add nodata alias * Add find alias * Add gap alias * Add header alias * Add outcols alias * Add skiprows alias * Add wrap alias * Format * Apply suggestions from code review Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Wei Ji <[email protected]>
Description of proposed changes
This PR adds the following common options to COMMON_OPTIONS in pygmt/helpers/decorators.py:
This is all the remaining common options from #48 except -l (which I would prefer having some discussion about the implementation before adding) and -: which I do not think we need to support since this can be done with
incols
.The common options are added to either wiggle or blockmean/blockmedian for convenience for reviewing. I did not add the common options to all the modules that accept them because these could be good first issues for the upcoming ESWN workshop, in order to have a first exercise where everyone works on a similar task.
Relates to #48
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version