Skip to content

Add @showprogress macro #1116

Add @showprogress macro

Add @showprogress macro #1116

Triggered via pull request November 24, 2023 07:11
@YichengDWuYichengDWu
synchronize #242
addmacro
Status Cancelled
Total duration 30m 14s
Artifacts

CI.yml

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

Annotations

2 errors
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/L_shape.md:33-53 ```@example L chain = FullyConnected((2,16,16,16,1), tanh) pinn = PINN(chain) sampler = QuasiRandomSampler(300, 30) strategy = NonAdaptiveTraining() prob = Sophon.discretize(pde_system, pinn, sampler, strategy) @showprogress res = Optimization.solve(prob, BFGS(); maxiters=1000) using CairoMakie xs = -1:0.01:1 ys = -1:0.01:1 u_pred = [ifelse(x>0.0 && y>0.0, NaN, pinn.phi([x,y], res.u)[1]) for x in xs, y in ys] fig, ax, hm = heatmap(xs, ys, u_pred, colormap=:jet) Colorbar(fig[:, end+1], hm) fig save("Lshape.png", fig); nothing # hide ``` exception = LoadError: UndefVarError: `@sprintf` not defined Stacktrace: [1] top-level scope @ :0 [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 in expression starting at /home/runner/work/Sophon.jl/Sophon.jl/src/showprogress.jl:28
Documentation
The operation was canceled.