pygmt.grdclip: Deprecate parameter 'new' to 'replace' (remove in v0.19.0)#3884
pygmt.grdclip: Deprecate parameter 'new' to 'replace' (remove in v0.19.0)#3884
Conversation
yvonnefroehlich
left a comment
There was a problem hiding this comment.
Should we add tests for this parameter and the usage of the old parmeter name?
Similar to the mode parameter of grdfill:
pygmt/pygmt/tests/test_grdfill.py
Lines 143 to 150 in a11fc15
Currently, it looks like only above, below and between are included in the tests (https://github.com/GenericMappingTools/pygmt/blob/main/pygmt/tests/test_grdclip.py).
Thanks. Added. |
pygmt/tests/test_grdclip.py
Outdated
| npt.assert_array_equal(np.unique(grid), [1, 2]) | ||
|
|
||
| # Test for the deprecated 'new' parameter | ||
| # TODO(PyGMT>=0.19.0): Remove this test for the 'new' parameter |
There was a problem hiding this comment.
Clarify that only the test below is to be removed, not the entire unit test.
| # TODO(PyGMT>=0.19.0): Remove this test for the 'new' parameter | |
| # TODO(PyGMT>=0.19.0): Remove this test below for the 'new' parameter |
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Addressing #3882 (comment).
Hopefully it can be approved and merged into v0.15.0