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 incols to COMMON_OPTIONS, blockmean, and blockmedian #1300

Merged
merged 2 commits into from
May 27, 2021

Conversation

maxrjones
Copy link
Member

Description of proposed changes

This PR adds incols to COMMON_OPTIONS in decorators.py. The current version includes the full information from the GMT docs, but opinions are welcome if others think that 'Full documentation is at :gmt-docs:gmt.html#the-i-option' would be better than a complete description.

I added the alias to the pygmt/src/blockm.py methods to make reviewing easier, so that the description for incols can be reviewed using the vercel preview. I didn't add the common option to any other methods in order to keep the diff small.

Addresses #48.
Relates to #764

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

@maxrjones maxrjones requested a review from michaelgrund May 26, 2021 15:47
Copy link
Member

@michaelgrund michaelgrund left a comment

Choose a reason for hiding this comment

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

Looks good to me. It's much better than the description I provided originally for Fig.plot() since it also includes a description for using strings.

@maxrjones
Copy link
Member Author

@michaelgrund, thanks for reviewing. I will put a 'final review call' label up and leave this open for ~12 hours in case other people have recommendations. Hopefully this meshes with #1113 and does not slow down you or Will too much with your PRs.

@maxrjones maxrjones added the final review call This PR requires final review and approval from a second reviewer label May 26, 2021
@maxrjones maxrjones self-assigned this May 26, 2021
Copy link
Member

@seisman seisman left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@seisman seisman added this to the 0.4.0 milestone May 26, 2021
@seisman seisman added the enhancement Improving an existing feature label May 26, 2021
@maxrjones maxrjones removed the final review call This PR requires final review and approval from a second reviewer label May 27, 2021
@maxrjones maxrjones merged commit 44efccc into master May 27, 2021
@maxrjones maxrjones deleted the common-opts-incols branch May 27, 2021 10:27
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…ingTools#1300)

* Add incols to COMMON_OPTIONS in decorators.py

* Add incols to blockm.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants