Implement interpolation methods from NaturalNeighbours.jl #161
Annotations
5 errors and 1 notice
Run julia-actions/julia-docdeploy@v1:
../../../.julia/packages/Documenter/pA5Sa/src/utilities/utilities.jl#L44
undefined binding 'TopoPlots.NaturalNeighbourMethod' in `@docs` block in src/general.md:18-25
```@docs
TopoPlots.DelaunayMesh
TopoPlots.CloughTocher
TopoPlots.SplineInterpolator
TopoPlots.ScatteredInterpolationMethod
TopoPlots.NaturalNeighbourMethod
TopoPlots.NullInterpolator
```
|
Run julia-actions/julia-docdeploy@v1:
../../../.julia/packages/Documenter/pA5Sa/src/utilities/utilities.jl#L44
failed to run `@example` block in src/interpolator_reference.md:58-103
```@example 1
using 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 = 5) 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 =
ArgumentError: Package Makie not found in current path, maybe you meant `import/using .Makie`.
- Otherwise, run `import Pkg; Pkg.add("Makie")` to install the Makie package.
Stacktrace:
[1] macro expansion
@ ./loading.jl:1772 [inlined]
[2] macro expansion
@ ./lock.jl:267 [inlined]
[3] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1753
[4] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[5] invoke_in_world
@ ./essentials.jl:923 [inlined]
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1746
[7] eval
@ ./boot.jl:385 [inlined]
[8] #58
@ ~/.julia/packages/Documenter/pA5Sa/src/expander_pipeline.jl:754 [inlined]
[9] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[10] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/pA5Sa/src/expander_pipeline.jl:753
[11] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[12] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[13] with_logger
@ ./logging.jl:627 [inlined]
[14] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[15] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/pA5Sa/src/expander_pipeline.jl:752
|
|
|
Run julia-actions/julia-docdeploy@v1
Process completed with exit code 1.
|
Run julia-actions/julia-buildpkg@v1
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`
|
The logs for this run have expired and are no longer available.
Loading