Update grdfill parameters for GMT 6.2.0#1283
Conversation
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
|
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 <seisman.info@gmail.com>
|
@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. |
weiji14
left a comment
There was a problem hiding this comment.
Welcome back @willschlitzer! Hope you had some good time off. Just one review comment for now 😃
maxrjones
left a comment
There was a problem hiding this comment.
One tiny comment, otherwise looks great!
Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
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 <seisman.info@gmail.com> Co-authored-by: Meghan Jones <meghanj@alum.mit.edu> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
This pull request adds additional parameters to the
grdfillmodule.Continuation of work on #1276
Reminders
make formatandmake checkto 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