Skip to content

Conversation

seisman
Copy link
Member

@seisman seisman commented Sep 20, 2025

Migrate the 'hole' parameter and add a test to ensure that both hole and no_data (deprecated) work as expected.

@seisman seisman added this to the 0.17.0 milestone Sep 20, 2025
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Sep 20, 2025
@@ -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.
Copy link
Member

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?

Copy link
Member Author

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants