Skip to content
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

Ensure consistent pit cells ordering before breaching #419

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jfbourdon
Copy link
Contributor

Fix #418

Make sure that each run of the tool gives the same output. This is needed because the stack is built using parallel processing meaning that the values aren't always in the same order. This isn't an issue as long as their is no height ties... which happen quite often. Sorting first by X and Y ensure consistent ordering as this XY tuple is unique for each cell.

My PR use three consecutive sort_by() but I'm sure there is an more elegant or concise way to do it. An alternative might be to build the stack while keeping track of each row.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent results with BreachDepressionLeastCost from run to run
1 participant