eeg_topoplot labels fix #182
CI.yml
on: pull_request
Documentation
12m 31s
Matrix: test
Annotations
4 errors and 1 notice
Julia 1 - ubuntu-latest - x64
Process completed with exit code 1.
|
Documentation:
../../../.julia/packages/Documenter/C1XEF/src/utilities/utilities.jl#L44
failed to run `@example` block in src/general.md:40-82
```@example 1
using TopoPlots, CairoMakie, ScatteredInterpolation, NaturalNeighbours
data, positions = TopoPlots.example_data()
f = Figure(resolution=(1000, 1250))
interpolators = [
DelaunayMesh() CloughTocher();
SplineInterpolator() NullInterpolator();
ScatteredInterpolationMethod(ThinPlate()) ScatteredInterpolationMethod(Shepard(3));
NaturalNeighboursMethod(Sibson(1)) NaturalNeighboursMethod(Triangle());
]
data_slice = data[:, 360, 1]
for idx in CartesianIndices(interpolators)
interpolation = interpolators[idx]
# precompile to get accurate measurements
TopoPlots.topoplot(
data_slice, positions;
contours=true, interpolation=interpolation,
labels = string.(1:length(positions)), colorrange=(-1, 1),
label_scatter=(markersize=10,),
axis=(type=Axis, title="...", aspect=DataAspect(),))
# measure time, to give an idea of what speed to expect from the different interpolators
t = @Elapsed ax, pl = TopoPlots.topoplot(
f[Tuple(idx)...], data_slice, positions;
contours=true,
interpolation=interpolation,
labels = string.(1:length(positions)), colorrange=(-1, 1),
label_scatter=(markersize=10,),
axis=(type=Axis, title="$(typeof(interpolation))()",aspect=DataAspect(),))
ax.title = ("$(typeof(interpolation))() - $(round(t, digits=2))s")
if interpolation isa Union{NaturalNeighboursMethod, ScatteredInterpolationMethod}
ax.title = "$(typeof(interpolation))($(typeof(interpolation.method))) - $(round(t, digits=2))s"
end
end
f
```
exception =
TaskFailedException
nested task error: KeyError: key (10, 9, 8) not found
Stacktrace:
[1] getindex
@ ./dict.jl:498 [inlined]
[2] #_eval_interp#22
@ ~/.julia/packages/NaturalNeighbours/HJ2P0/src/interpolation/eval.jl:65 [inlined]
[3] _eval_interp
@ ~/.julia/packages/NaturalNeighbours/HJ2P0/src/interpolation/eval.jl:47 [inlined]
[4] (::NaturalNeighbours.NaturalNeighboursInterpolant{DelaunayTriangulation.Triangulation{Vector{Tuple{Float32, Float32}}, Set{Tuple{Int64, Int64, Int64}}, Vector{Int64}, DelaunayTriangulation.ZeroWeight{Float32}, Int64, Tuple{Int64, Int64}, Set{Tuple{Int64, Int64}}, Tuple{}, Dict{Tuple{Int64, Int64}, Tuple{Vector{Int64}, Int64}}, Dict{Int64, Vector{Int64}}, Dict{Int64, UnitRange{Int64}}, Dict{Int64, DelaunayTriangulation.RepresentativeCoordinates{Int64, Float32}}, DelaunayTriangulation.TriangulationCache{DelaunayTriangulation.Triangulation{Vector{Tuple{Float32, Float32}}, Set{Tuple{Int64, Int64, Int64}}, Vector{Int64}, DelaunayTriangulation.ZeroWeight{Float32}, Int64, Tuple{Int64, Int64}, Set{Tuple{Int64, Int64}}, Tuple{}, Dict{Tuple{Int64, Int64}, Tuple{Vector{Int64}, Int64}}, Dict{Int64, Vector{Int64}}, Dict{Int64, UnitRange{Int64}}, Dict{Int64, DelaunayTriangulation.RepresentativeCoordinates{Int64, Float32}}, DelaunayTriangulation.TriangulationCache{Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}, Nothing}, Vector{Int64}, Set{Tuple{Int64, Int64}}, Vector{Int64}, Set{Tuple{Int64, Int64, Int64}}, NTuple{4, SubArray{Float32, 1, Vector{Float32}, Tuple{UnitRange{Int64}}, true}}, Tuple{SubArray{Float32, 1, Vector{Float32}, Tuple{UnitRange{Int64}}, true}, SubArray{Float32, 1, Vector{Float32}, Tuple{UnitRange{Int64}}, true}}, NTuple{27, SubArray{Float32, 1, Vector{Float32}, Tuple{UnitRange{Int64}}, true}}}, Nothing}, Float64, Vector{Tuple{Float32, Float32}}, Vector{Tuple{Float32, Float32, Float32}}, Vector{NaturalNeighbours.NaturalNeighboursCache{Float32, Int64, DelaunayTriangulation.InsertionEventHistory{Tuple{Int64, Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}, Base.RefValue{Tuple{Int64, Int64, Int64}}}}, Vector{NaturalNeighbours.DerivativeCache{Int64, Float32}}})(x::Float32, y::Float32, id::Int64; parallel::Bool, method::NaturalNeighbours.Triangle{0}, kwargs::@kwargs{project::Bool})
@ NaturalNeighbours ~/.julia/packages/NaturalNeighbours
|
Documentation:
../../../.julia/packages/Documenter/C1XEF/src/utilities/utilities.jl#L44
failed to run `@example` block in src/interpolator_reference.md:58-104
```@example 1
using TopoPlots, CairoMakie, ScatteredInterpolation, NaturalNeighbours
using TopoPlots.Makie.Random: randsubseq
data = Makie.peaks(100)
sampling_points = randsubseq(CartesianIndices(data), 0.011)
data_slice = data[sampling_points]
positions = Point2f.(Tuple.(sampling_points))
interpolators = [
SplineInterpolator(; smoothing = 7) NullInterpolator() DelaunayMesh();
CloughTocher() ScatteredInterpolationMethod(ThinPlate()) ScatteredInterpolationMethod(Shepard(3));
ScatteredInterpolationMethod(Multiquadratic()) ScatteredInterpolationMethod(InverseMultiquadratic()) ScatteredInterpolationMethod(Gaussian());
NaturalNeighboursMethod(Hiyoshi(2)) NaturalNeighboursMethod(Sibson()) NaturalNeighboursMethod(Laplace());
NaturalNeighboursMethod(Farin()) NaturalNeighboursMethod(Sibson(1)) NaturalNeighboursMethod(Nearest());
]
f = Figure(; size = (1000, 1500))
for idx in CartesianIndices(interpolators)
interpolation = interpolators[idx]
# precompile to get accurate measurements
TopoPlots.topoplot(
data_slice, positions;
contours=true, interpolation=interpolation,
labels = string.(1:length(positions)), colorrange=(-1, 1),
label_scatter=(markersize=10,),
axis=(type=Axis, title="...", aspect=DataAspect(),))
# measure time, to give an idea of what speed to expect from the different interpolators
t = @Elapsed ax, pl = TopoPlots.topoplot(
f[Tuple(idx)...], data_slice, positions;
contours=true,
interpolation=interpolation,
labels = string.(1:length(positions)), colorrange=(-1, 1),
label_scatter=(markersize=10,),
axis=(type=Axis, title="$(typeof(interpolation))()",aspect=DataAspect(),))
ax.title = ("$(typeof(interpolation))() - $(round(t, digits=2))s")
if interpolation isa Union{NaturalNeighboursMethod, ScatteredInterpolationMethod}
ax.title = "$(typeof(interpolation))() - $(round(t, digits=2))s"
ax.subtitle = string(typeof(interpolation.method))
end
end
f
```
exception =
The required storage space exceeds the available storage space:
nxest or nyest too small, or s too small. Try increasing s.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] Dierckx.Spline2D(x::Vector{Float32}, y::Vector{Float32}, z::Vector{Float64}; w::Vector{Float64}, kx::Int64, ky::Int64, s::Float64)
@ Dierckx ~/.julia/packages/Dierckx/TDOyl/src/Dierckx.jl:838
[3] Spline2D
@ ~/.julia/packages/Dierckx/TDOyl/src/Dierckx.jl:733 [inlined]
[4] (::SplineInterpolator)(xrange::LinRange{Float32, Int64}, yrange::LinRange{Float32, Int64}, positions::Vector{GeometryBasics.Point{2, Float32}}, data::Vector{Float64}; mask::BitMatrix)
@ TopoPlots ~/work/TopoPlots.jl/TopoPlots.jl/src/interpolators.jl:65
[5] SplineInterpolator
@ ~/work/TopoPlots.jl/TopoPlots.jl/src/interpolators.jl:59 [inlined]
[6] (::TopoPlots.var"#38#44")(interpolation::SplineInterpolator, xg::LinRange{Float32, Int64}, yg::LinRange{Float32, Int64}, ::Tuple{Vector{GeometryBasics.Point{2, Float32}}, Vector{Float64}, GeometryBasics.HyperRectangle{2, Float32}, GeometryBasics.HyperRectangle{2, Float32}}, mask::BitMatrix)
@ TopoPlots ~/work/TopoPlots.jl/TopoPlots.jl/src/core-recipe.jl:115
[7] map(::TopoPlots.var"#38#44", ::Union{Makie.Scene, MakieCore.Plot}, ::Observables.Observable{Any}, ::Observables.Observable{LinRange{Float32, Int64}}, ::Vararg{Any}; ignore_equal_values::Bool, priority::Int64)
@ Makie ~/.julia/packages/Makie/gG38B/src/scenes.jl:167
[8] map(::TopoPlots.var"#38#44", ::Union{Makie.Scene, MakieCore.Plot}, ::Observables.Observable{Any}, ::Observables.Observable{LinRange{Float32, Int64}}, ::Vararg{Any})
@ Makie ~/.julia/packages/Makie/gG38B/src/scenes.jl:164
[9] plot!(p::MakieCore.Plot{TopoPlots.topoplot, Tuple{Vector{Float64}, Vector{GeometryBasics.Point{2, Float32}}}})
@ TopoPlots ~/work/TopoPlots.jl/TopoPlots.jl/src/core-rec
|
Documentation
Process completed with exit code 1.
|
[julia-buildpkg] Caching of the julia depot was not detected
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`
|