-
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
Update grdfill parameters for GMT 6.2.0 #1283
Conversation
Co-authored-by: Dongdong Tian <[email protected]>
Just surfacing a point made in #1276:
Could you please add a line in the docstring that says Edit: Maybe hold on first, |
It looks like @PaulWessel is planning on making -A required. I'm not sure what the timeline is for that, so I added a test to check that grdfill works with only a |
Another update from that gmt grdfill PR: either -A or -L is required. The bug fix will be merged after 6.2.0rc2 and likely before 6.2.0. I think the best solution for pygmt is to check that either -A or -L are provided and give a GMTInvalidInput error if not (similar to |
I made |
Co-authored-by: Dongdong Tian <[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 great~
@meghanrjones Could you please give this PR a review, since you know more about the changes on the GMT side. |
Is the plan to add -L separately? The s option for |
Option -L output some information to stdout, rather than modifying an input grid. I believe it needs more effort to think about how to return the -L output and can be done in a separate PR.
I think this documentation issue is small and should be included into this PR. |
Ping @willschlitzer to improve the description of -A option, that |
I'm planning on doing this after I get back to my home on June 14th. |
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.
Welcome back @willschlitzer! Hope you had some good time off. Just one review comment for now 😃
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.
One tiny comment, otherwise looks great!
Co-authored-by: Meghan Jones <[email protected]>
Co-authored-by: Wei Ji <[email protected]>
Add an additional `verbose` (-V) parameter to the `grdfill` module, include the new mode='s' option, and set 'mode' and 'L' as required parameters. * fix top docstring * make A/L required arguments * add s option in docs for mode in grdfill Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Meghan Jones <[email protected]> Co-authored-by: Wei Ji <[email protected]>
This pull request adds additional parameters to the
grdfill
module.Continuation of work on #1276
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