Skip to content

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