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

Require Julia 1.10, fix tests for Julia 1.11 #7

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Require Julia 1.10, fix tests for Julia 1.11 #7

merged 2 commits into from
Oct 10, 2024

Conversation

mtfishman
Copy link
Member

@mtfishman mtfishman commented Oct 10, 2024

Closes #6.

The issue was that the vertex positions of the images are being generated using NetworkLayout.jl, which starts with random vertex positions and then performs an optimization. However, the Julia random number generator can change between Julia versions, which it did between Julia 1.10 to 1.11, so the positions generated by NetworkLayout.jl are different between those versions. The strategy I took here is to have different sets of reference images for different Julia versions, which isn't ideal since then they have to be regenerated when a new Julia version is released (maybe that can be automated but that sounds a bit annoying to set up). An alternative would be to use StableRNGs.jl to generate random starting positions that won't depend on the Julia version, however that will require this PR in NetworkLayout.jl: JuliaGraphs/NetworkLayout.jl#65.

See also MakieOrg/GraphMakie.jl#190.

@mtfishman mtfishman merged commit 445e431 into main Oct 10, 2024
7 checks passed
@mtfishman mtfishman deleted the Julia_1.11 branch October 10, 2024 19:50
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.

Fix test failures in Julia 1.11
1 participant