Skip to content

Conversation

@cyliang368
Copy link
Contributor

@cyliang368 cyliang368 commented Jun 9, 2024

r.texture module has thirteen measure functions, but only five are tested. I added tests for all these functions. They are checked by min, max, mean, variance, and cells instead of just ranges of outputs.

@github-actions github-actions bot added raster Related to raster data processing Python Related code is in Python module tests Related to Test Suite labels Jun 9, 2024
@cyliang368 cyliang368 mentioned this pull request Jun 9, 2024
Copy link
Member

@wenzeslaus wenzeslaus left a 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 helpful in general and extremely helpful for your work.

With couple minor changes, we can merge this any time.

Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one detail to get not just a working tests but also a good example test file for the future.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@neteler neteler added this to the 8.5.0 milestone Jun 14, 2024
@echoix
Copy link
Member

echoix commented Jun 14, 2024

CI successful on mirrored PR here: cyliang368#3, can be merged overriding the status checks requirements. @wenzeslaus

@wenzeslaus wenzeslaus merged commit 5d57a81 into OSGeo:main Jun 14, 2024
cyliang368 added a commit to cyliang368/grass that referenced this pull request Jun 14, 2024
r.texture module has thirteen measure functions, but only five are tested. I added tests for all these functions. They are checked by min, max, mean, variance, and cells instead of just ranges of outputs.

Add additional values for macOS test which has slightly different results.
cyliang368 added a commit to cyliang368/grass that referenced this pull request Jun 14, 2024
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jun 17, 2024
r.texture module has thirteen measure functions, but only five are tested. I added tests for all these functions. They are checked by min, max, mean, variance, and cells instead of just ranges of outputs.

Add additional values for macOS test which has slightly different results.
@cyliang368 cyliang368 deleted the rtexture_tests branch June 21, 2024 23:53
neteler pushed a commit that referenced this pull request Oct 8, 2025
r.texture module has thirteen measure functions, but only five are tested. I added tests for all these functions. They are checked by min, max, mean, variance, and cells instead of just ranges of outputs.

Add additional values for macOS test which has slightly different results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants