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

Remove randomisation of insertion order in calls to triangulate in triplot/voronoiplot/triplot #4008

Closed
wants to merge 1 commit into from

Conversation

DanielVandH
Copy link
Contributor

@DanielVandH DanielVandH commented Jul 6, 2024

Hopefully fixes the issue observed in #4003 as I've discussed with @SimonDanisch. Locally, running the test over and over gives the same centroidal tessellation.

The test was actually broken before DelaunayTriangulation@1.0.4 (i.e. it always gave a different image), not sure why it suddenly started breaking though.

Do I need to update the changelog for this?

@SimonDanisch SimonDanisch reopened this Jul 7, 2024
@SimonDanisch SimonDanisch added the skip-changelog Skips changelog enforcer label Jul 7, 2024
@DanielVandH
Copy link
Contributor Author

As discussed, the issues with the failing tests seems to be an issue of the results changing depending on the iteration order (which seems to have changed between release and 1.6) of the Dicts used within DelaunayTriangulation.jl.

A better solution to these issues would be for me to redesign the tests that involve either refine! or centroidal_smooth (since these algorithms can fall into local minima that might depend on the iteration order) so that iteration order does not matter. I'll try and find the time to do that. I do think it would still be good to also disable randomisation as this PR implements

@DanielVandH DanielVandH deleted the rm_rand branch July 21, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skips changelog enforcer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants