Skip to content

Commit 1de4994

Browse files
authored
Bump [compat] on MakieCore (#40)
This also adds "smoke tests" for the drawing functions. They do not run as part of CI, but seem potentially useful.
1 parent af1996b commit 1de4994

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Colors = "0.12"
2727
GenericLinearAlgebra = "0.3"
2828
GeometryBasics = "0.4"
2929
Hungarian = "0.7"
30-
MakieCore = "0.6"
30+
MakieCore = "0.6, 0.7, 0.8"
3131
MutableConvexHulls = "0.2"
3232
NearestNeighbors = "0.4.1"
3333
Optim = "1.7.4"

test/draw.jl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Smoke tests for drawing functions
2+
3+
using Makie # load GLMakie or CairoMakie externally
4+
using GaussianMixtureAlignment
5+
using Test
6+
7+
@testset "drawing" begin
8+
tetrahedral = [
9+
[0.,0.,1.],
10+
[sqrt(8/9), 0., -1/3],
11+
[-sqrt(2/9),sqrt(2/3),-1/3],
12+
[-sqrt(2/9),-sqrt(2/3),-1/3]
13+
]
14+
gmm = IsotropicGMM([IsotropicGaussian(x, 1.2, 1) for x in tetrahedral])
15+
gmmdisplay(gmm)
16+
17+
ch_g = IsotropicGaussian(tetrahedral[1], 1.0, 1.0)
18+
s_gs = [IsotropicGaussian(x, 0.5, 1.0) for (i,x) in enumerate(tetrahedral)]
19+
mgmmx = IsotropicMultiGMM(Dict(
20+
:positive => IsotropicGMM([ch_g]),
21+
:steric => IsotropicGMM(s_gs)
22+
))
23+
gmmdisplay(gmm)
24+
end

0 commit comments

Comments
 (0)