From 73e7772de4e827c99203981da3f70abb8fc8f464 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Thu, 3 Oct 2024 20:53:34 +0100 Subject: [PATCH 1/4] Remove `error: true` from config --- tutorials/_metadata.yml | 3 +-- tutorials/docs-17-implementing-samplers/index.qmd | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/_metadata.yml b/tutorials/_metadata.yml index 28fab4116..bfb360691 100755 --- a/tutorials/_metadata.yml +++ b/tutorials/_metadata.yml @@ -6,7 +6,6 @@ format: execute: echo: true output: true - error: true include-in-header: - text: | \ No newline at end of file + diff --git a/tutorials/docs-17-implementing-samplers/index.qmd b/tutorials/docs-17-implementing-samplers/index.qmd index 339e54870..5c3aee618 100644 --- a/tutorials/docs-17-implementing-samplers/index.qmd +++ b/tutorials/docs-17-implementing-samplers/index.qmd @@ -448,6 +448,7 @@ logpdf(Beta(3, 3), 10.0) and so the samples that fall outside of the range are always rejected. But do notice how much worse all the diagnostics are, e.g. `ess_tail` is very poor compared to when we use `unconstrained=true`. Moreover, in more complex cases this won't just result in a "nice" `-Inf` log-density value, but instead will error: ```{julia} +#| error: true @model function demo() σ² ~ truncated(Normal(), lower=0) # If we end up with negative values for `σ²`, the `Normal` will error. From ec354c20b48622441a3da193bcc628d572e0bc61 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 4 Oct 2024 00:58:48 +0100 Subject: [PATCH 2/4] Try caching dependencies --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 94b107e10..3e8ffded9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,6 +24,9 @@ jobs: with: version: '1.10' + - name: Load Julia packages from cache + uses: julia-actions/cache@v2 + # Note: needs resolve() to fix #518 - name: Instantiate Julia environment run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()' From 7838083ea1111a6fcd569108a019c4db7e661216 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 4 Oct 2024 10:52:39 +0100 Subject: [PATCH 3/4] Cache in preview workflow too --- .github/workflows/preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index de88eee84..bc2e3cb5d 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -25,6 +25,9 @@ jobs: with: version: '1.10' + - name: Load Julia packages from cache + uses: julia-actions/cache@v2 + # Note: needs resolve() to fix #518 - name: Instantiate Julia environment run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()' From 14f6f3f42bc056ade57bdaed8cc2dee13e859897 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 4 Oct 2024 21:06:42 +0100 Subject: [PATCH 4/4] Try a no-op commit --- _quarto.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_quarto.yml b/_quarto.yml index 752f6ca90..45a6882a8 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -5,6 +5,7 @@ project: port: 4200 browser: true + # These cannot be used as variables. They are reserved for the project configuration. website: title: "Turing.jl"