We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MWE, add to test_regridder.py:
test_regridder.py
def test_overlap_regridder_structured_values(grid_data_a): grid_data_adapted = grid_data_a.copy() grid_data_adapted.values[0, 0] = 99 regridder = OverlapRegridder(source=grid_data_adapted, target=grid_data_a, method="mode") result = regridder.regrid(grid_data_adapted) assert not np.all(result == 99.0)
This test fails, instead all values are turned into the first value (99).
I've found the culprit: It has to do with an indexing bug in regrid.reduce.mode, working on a fix.
regrid.reduce.mode
The text was updated successfully, but these errors were encountered:
Merge pull request #237 from Deltares/issue_#236_fix_indexing_in_mode…
97cf167
…_method_regridding Issue #236 fix indexing in mode method regridding
JoerivanEngelen
Successfully merging a pull request may close this issue.
MWE, add to
test_regridder.py
:This test fails, instead all values are turned into the first value (99).
I've found the culprit: It has to do with an indexing bug in
regrid.reduce.mode
, working on a fix.The text was updated successfully, but these errors were encountered: