Skip to content

tests: Pin the cells of a seed for r.random.cells - #8105

Open
Valyrian-Code wants to merge 1 commit into
OSGeo:mainfrom
Valyrian-Code:r.random.cells-pin-seed
Open

Valyrian-Code wants to merge 1 commit into
OSGeo:mainfrom
Valyrian-Code:r.random.cells-pin-seed

Conversation

@Valyrian-Code

Copy link
Copy Markdown
Contributor

Follow-up to #7893, suggested there: pin the cells r.random.cells fills for one seed, so a change of the random number generator shows up.

Uses a region of 4 by 5 cells. Both the distance driven fill and the ncells limited one are pinned, to catch a change in the order the cells are drawn. Same idea as #8077 and #8078.

The existing tests check counts and bounds, which stay as they are.

Suggested squash commit message

tests: Pin the cells of a seed for r.random.cells

Adds two tests pinning the cells r.random.cells fills for one seed on a region of 4 by 5 cells, so a change of the random number generator shows as a change of the result. The existing tests check counts and bounds only.

Both the distance driven fill and the ncells limited fill are pinned, to catch a change in the order the cells are drawn.

Adds two tests pinning the cells r.random.cells fills for one seed on a
region of 4 by 5 cells, so a change of the random number generator shows
as a change of the result. The existing tests check counts and bounds only.

Both the distance driven fill and the ncells limited fill are pinned, to
catch a change in the order the cells are drawn.
Copilot AI balanced review requested due to automatic review settings October 22, 2026 17:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@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 Oct 22, 2026
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.

2 participants