-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
r.basins.fill: Fix Broken Tests and Preserve Test Dataset Integrity #5198
base: main
Are you sure you want to change the base?
r.basins.fill: Fix Broken Tests and Preserve Test Dataset Integrity #5198
Conversation
Signed-off-by: Nishant Bansal <[email protected]>
Signed-off-by: Nishant Bansal <[email protected]>
Signed-off-by: Nishant Bansal <[email protected]>
Well, looking more into it, this entire test is pretty much useless. So I would either rewrite it completely or drop it. |
Oh, let me rewrite this then. I'll update once it's done. |
Signed-off-by: Nishant Bansal <[email protected]>
Signed-off-by: Nishant Bansal <[email protected]>
Hey @petrasovaa, I rewrote the tests. Can you take a look? |
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.
Thank you, this is much better! I tried to run it and I suggest:
- reduce computational region (resolution or extent) , the test runs almost 20s on my computer, which is unnecessarily long. No need for g.region print flag here.
- it expects zeros, not nulls in stream raster (this tool was written long time ago when nulls were not even implemented). You can use r.null here.
Signed-off-by: Nishant Bansal <[email protected]>
Signed-off-by: Nishant Bansal <[email protected]>
Overview:
This PR resolves issues in the r.basins.fill module tests as outlined in ticket #3822. It applies the patch provided in testrbf_fix_mapnames.diff to address broken tests.
Key Changes:
The patch from ticket 3822 has been applied to correct broken tests in r.basins.fill.
Previously, the tests would overwrite the "elevation" and "geology_30m" maps, corrupting the test dataset. This PR now creates copies of these maps before processing, ensuring the original test data remains intact.
With the fixes in place, the temporary workaround using
@unittest.skip("See #3822")
is no longer necessary and can be removed.