-
Notifications
You must be signed in to change notification settings - Fork 229
pygmt.grdfill: Migrate the hole parameter to the new alias system and add a test #4108
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
base: main
Are you sure you want to change the base?
Conversation
pygmt/tests/test_grdfill.py
Outdated
@@ -114,6 +114,31 @@ def test_grdfill_gridfill_dataarray(grid): | |||
npt.assert_array_equal(result[3:6, 3:5], bggrid[3:6, 3:5]) | |||
|
|||
|
|||
def test_grdfill_hole(grid, expected_grid): | |||
""" | |||
Test grdfill with different hole values. |
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.
Hm. I am not sure if I understand what you mean with "different" here. As far as I know, there could be only one value used to define the nodes considered as holes at a time. Maybe "different" refers to the fact that the value for nodes considered as holes is set to a new value in this test?
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.
I've rephrased it to "Test grdfill with a custom value (not NaN) as holes."
Co-authored-by: Yvonne Fröhlich <[email protected]>
Migrate the 'hole' parameter and add a test to ensure that both
hole
andno_data
(deprecated) work as expected.