Skip to content

Merge pull request #242 from YichengDWu/addmacro #1125

Merge pull request #242 from YichengDWu/addmacro

Merge pull request #242 from YichengDWu/addmacro #1125

Triggered via push November 24, 2023 09:42
Status Failure
Total duration 1h 37m 55s
Artifacts

CI.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/SchrödingerEquation.md:42-56 ```@example Schrödinger function train(pde_system, prob, sampler, strategy, resample_period = 500, n=10) bfgs = BFGS() res = Optimization.solve(prob, bfgs; maxiters=2000) for i in 1:n data = Sophon.sample(pde_system, sampler) prob = remake(prob; u0=res.u, p=data) res = Optimization.solve(prob, bfgs; maxiters=resample_period) end return res end @showprogress res = train(pde_system, prob, sampler, strategy) ``` exception = LoadError: Unsupported expression format Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] var"@showprogress"(__source__::LineNumberNode, __module__::Module, expr::Any) @ Sophon ~/work/Sophon.jl/Sophon.jl/src/showprogress.jl:6 [3] eval @ ./boot.jl:370 [inlined] [4] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [5] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [6] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [7] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [8] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [9] with_logger @ ./logging.jl:626 [inlined] [10] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [11] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736 in expression starting at SchrödingerEquation.md:55
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/SchrödingerEquation.md:58-73 ```@example Schrödinger phi = pinn.phi ps = res.u xs, ts= [infimum(d.domain):0.01:supremum(d.domain) for d in pde_system.domain] u = [sum(phi.u(([x,t]), ps.u)) for x in xs, t in ts] v = [sum(phi.v(([x,t]), ps.v)) for x in xs, t in ts] ψ = @. sqrt(u^2+ v^2) axis = (xlabel="t", ylabel="x", title="u") fig, ax1, hm1 = heatmap(ts, xs, u', axis=axis) ax2, hm2= heatmap(fig[1, end+1], ts, xs, v', axis= merge(axis, (; title="v"))) display(fig) save("uv.png", fig); nothing # hide ``` exception = UndefVarError: `res` not defined Stacktrace: [1] top-level scope @ SchrödingerEquation.md:60 [2] eval @ ./boot.jl:370 [inlined] [3] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [4] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [6] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [8] with_logger @ ./logging.jl:626 [inlined] [9] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [10] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/SchrödingerEquation.md:76-82 ```@example Schrödinger axis = (xlabel="t", ylabel="x", title="ψ") fig, ax1, hm1 = heatmap(ts, xs, ψ', axis=axis, colormap=:jet) Colorbar(fig[:, end+1], hm1) display(fig) save("phi.png", fig); nothing # hide ``` exception = UndefVarError: `ψ` not defined Stacktrace: [1] top-level scope @ SchrödingerEquation.md:78 [2] eval @ ./boot.jl:370 [inlined] [3] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [4] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [6] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [8] with_logger @ ./logging.jl:626 [inlined] [9] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [10] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/SchrödingerEquation.md:90-99 ```@example Schrödinger using StatsBase data = vec([[x, t] for x in xs, t in ts]) wv = vec(ψ) new_data = wsample(data, wv, 500) new_data = reduce(hcat, new_data) fig, ax = scatter(new_data[2,:], new_data[1,:]) save("data.png", fig); nothing # hide ``` exception = UndefVarError: `xs` not defined Stacktrace: [1] top-level scope @ SchrödingerEquation.md:93 [2] eval @ ./boot.jl:370 [inlined] [3] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [4] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [6] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [8] with_logger @ ./logging.jl:626 [inlined] [9] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [10] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/SchrödingerEquation.md:102-107 ```@example Schrödinger prob.p[1] = new_data prob.p[2] = new_data prob = remake(prob; u0 = res.u) # res = Optimization.solve(prob, bfgs; maxiters=1000) ``` exception = UndefVarError: `new_data` not defined Stacktrace: [1] top-level scope @ SchrödingerEquation.md:103 [2] eval @ ./boot.jl:370 [inlined] [3] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [4] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [6] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [8] with_logger @ ./logging.jl:626 [inlined] [9] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [10] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/waveinverse2.md:54-60 ```@example wave additional_loss(phi, θ) = sum(abs2, phi.u(input_data, θ.u) .- u_data) prob = Sophon.discretize(wave, pinn, sampler, strategy; additional_loss=additional_loss) @showprogress res = Optimization.solve(prob, BFGS(), maxiters=1000) ``` exception = LoadError: Unsupported expression format Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] var"@showprogress"(__source__::LineNumberNode, __module__::Module, expr::Any) @ Sophon ~/work/Sophon.jl/Sophon.jl/src/showprogress.jl:6 [3] eval @ ./boot.jl:370 [inlined] [4] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [5] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [6] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [7] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [8] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [9] with_logger @ ./logging.jl:626 [inlined] [10] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [11] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736 in expression starting at waveinverse2.md:59
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/waveinverse2.md:64-83 ```@example wave using CairoMakie ts = range(0, 1; length=100) xs = range(0, 1; length=100) u_pred = [pinn.phi.u([x, t], res.u.u)[1] for x in xs, t in ts] c_pred = [pinn.phi.c([x], res.u.c)[1] for x in xs] u_true = [ū(x, t) for x in xs, t in ts] c_true = 1 .+ abs2.(xs) |> vec axis = (xlabel="x", ylabel="t", title="Analytical Solution") fig, ax1, hm1 = heatmap(xs, ts, u_true, axis=axis; colormap=:jet) ax2, hm2= heatmap(fig[1, end+1], xs, ts, u_pred, axis= merge(axis, (;title = "Prediction")); colormap=:jet) ax3, hm3 = heatmap(fig[1, end+1], xs, ts, abs.(u_true .- u_pred), axis= merge(axis, (;title = "Absolute Error")); colormap=:jet) Colorbar(fig[:, end+1], hm3) fig save("sol.png", fig); nothing # hide ``` exception = UndefVarError: `res` not defined Stacktrace: [1] (::Main.__atexample__named__wave.var"#1#2")(::Tuple{Float64, Float64}) @ Main.__atexample__named__wave ./none:0 [2] iterate @ ./generator.jl:47 [inlined] [3] collect(itr::Base.Generator{Base.Iterators.ProductIterator{Tuple{StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}}}, Main.__atexample__named__wave.var"#1#2"}) @ Base ./array.jl:782 [4] top-level scope @ waveinverse2.md:70 [5] eval @ ./boot.jl:370 [inlined] [6] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [7] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [8] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [9] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [10] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [11] with_logger @ ./logging.jl:626 [inlined] [12] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [13] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/waveinverse2.md:87-92 ```@example wave fig, ax = lines(xs, c_pred) lines!(ax, xs, c_true) fig save("velocity.png", fig); nothing # hide ``` exception = UndefVarError: `c_pred` not defined Stacktrace: [1] top-level scope @ waveinverse2.md:88 [2] eval @ ./boot.jl:370 [inlined] [3] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:738 [inlined] [4] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:737 [6] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [8] with_logger @ ./logging.jl:626 [inlined] [9] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [10] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nQAq5/src/expander_pipeline.jl:736
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
invalid local link/image: file does not exist in src/tutorials/SchrödingerEquation.md link = @ast MarkdownAST.Image("uv.png", "") do MarkdownAST.Text("") end
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
invalid local link/image: file does not exist in src/tutorials/SchrödingerEquation.md link = @ast MarkdownAST.Image("phi.png", "") do MarkdownAST.Text("") end
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L46
8 docstrings not included in the manual: Sophon.sample Sophon.PDESystem Sophon.kaiming_uniform :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.init_uniform :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.wu :: Union{Tuple{Any}, Tuple{Any, Any}} Sophon.init_normal :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.kaiming_normal :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.forwarddiff :: NTuple{5, Any} These are docstrings in the checked modules (configured with the modules keyword) that are not included in canonical @docs or @autodocs blocks.