From b79315db29c06791ec4afd1858919785cc192f62 Mon Sep 17 00:00:00 2001 From: Paul Tiede Date: Wed, 21 Feb 2024 08:30:08 -0500 Subject: [PATCH] update docs --- docs/make.jl | 2 +- examples/ClosureImaging/main.jl | 10 +++++----- examples/HybridImaging/main.jl | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 4a7235d0..5186a332 100755 --- a/docs/make.jl +++ b/docs/make.jl @@ -29,7 +29,7 @@ makedocs(; ComradeOptimization, ComradeAHMC, ComradeNested, ComradeDynesty, ComradeAdaptMCMC], - repo="https://github.com/ptiede/Comrade.jl/blob/{commit}{path}#{line}", + # repo="https://github.com/ptiede/Comrade.jl/blob/{commit}{path}#{line}", sitename="Comrade.jl", format = Documenter.HTML(;prettyurls=true), pages=Any[ diff --git a/examples/ClosureImaging/main.jl b/examples/ClosureImaging/main.jl index a237bdf5..2dc23082 100644 --- a/examples/ClosureImaging/main.jl +++ b/examples/ClosureImaging/main.jl @@ -191,7 +191,7 @@ DisplayAs.Text(DisplayAs.PNG(fig)) #hide using ComradeAHMC using Zygote metric = DiagEuclideanMetric(ndim) -chain = sample(post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500); +chain = sample(post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500, progress=false); # !!! warning @@ -212,16 +212,16 @@ simg = std(imgs) fig = CM.Figure(;resolution=(700, 700)); CM.image(fig[1,1], mimg, axis=(xreversed=true, aspect=1, title="Mean Image"), - colormap=:afmhot) + colormap=:afmhot); CM.image(fig[1,2], simg./(max.(mimg, 1e-5)), axis=(xreversed=true, aspect=1, title="1/SNR",), colorrange=(0.0, 2.0), - colormap=:afmhot) + colormap=:afmhot); CM.image(fig[2,1], imgs[1], axis=(xreversed=true, aspect=1,title="Draw 1"), - colormap=:afmhot) + colormap=:afmhot); CM.image(fig[2,2], imgs[end], axis=(xreversed=true, aspect=1,title="Draw 2"), - colormap=:afmhot) + colormap=:afmhot); CM.hidedecorations!.(fig.content) DisplayAs.Text(DisplayAs.PNG(fig)) #hide diff --git a/examples/HybridImaging/main.jl b/examples/HybridImaging/main.jl index 216f6ad3..ef584356 100644 --- a/examples/HybridImaging/main.jl +++ b/examples/HybridImaging/main.jl @@ -274,7 +274,7 @@ CM.image(g, skymodel(post, xopt), axis=(aspect=1, xreversed=true, title="MAP"), # We will now move directly to sampling at this point. using ComradeAHMC metric = DiagEuclideanMetric(ndim) -chain = sample(rng, post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500, initial_params=xopt, progress=true); +chain = sample(rng, post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500, initial_params=xopt, progress=false); # We then remove the adaptation/warmup phase from our chain chain = chain[501:end]