Skip to content

Commit

Permalink
Merge branch 'master' into external_samplers_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeRZP authored Sep 20, 2023
2 parents 32284d5 + 0eb54db commit 1009fe5
Show file tree
Hide file tree
Showing 44 changed files with 13,448 additions and 7,445 deletions.
10 changes: 10 additions & 0 deletions .buildkite/build_tutorial.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -euo pipefail

echo "--- Instantiate"
julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.build()'

# Run tutorial
echo "+++ Run tutorial for ${1}"
julia --project=. weave_tutorials.jl "${1}"
Binary file modified .buildkite/launch_tutorials.yml.signature
Binary file not shown.
16 changes: 6 additions & 10 deletions .buildkite/run_tutorial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ steps:
plugins:
- staticfloat/cryptic#v2:
variables:
- BUILDKITE_S3_ACCESS_KEY_ID="U2FsdGVkX1/ckce1vUF8A17rHLxcAlAou4aokaeS8YL6omsA1Vq1IDZko5cL1Z+t"
- BUILDKITE_S3_SECRET_ACCESS_KEY="U2FsdGVkX1+SPF81nkK7KQ64DsafSl0qq2iG7BsQs1xlTYEtZV3MqQl3l/NWaiocaEywZZFbAB5zpnKPD0xHTQ=="
- BUILDKITE_S3_ACCESS_KEY_ID="U2FsdGVkX1+WPOr26vcEpOV6IfWQ/wwzUGjFRYux1AFtQjongCK2rnzySL6mkLdR"
- BUILDKITE_S3_SECRET_ACCESS_KEY="U2FsdGVkX19cbtDEWMwL+gpAtByCS8SJzX0hZ6qZ68L2bfjgAWJhbkb14T9uNwJZgKzWymvy0G9LwnJD/0VQ+Q=="
- BUILDKITE_S3_DEFAULT_REGION="U2FsdGVkX1/cORlxhXcxhja2JkqC0f8RmaGYxvGBbEg="
- JuliaCI/julia#v1:
version: 1
Expand Down Expand Up @@ -44,20 +44,16 @@ steps:
s3_prefix: s3://julialang-buildkite-artifacts/turingtutorials
timeout_in_minutes: 360
commands: |
# Instantiate, to install the overall project dependencies
echo "--- Instantiate"
julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.build()'
# Run tutorial
echo "+++ Run tutorial for {PATH}"
julia --project=. weave_tutorials.jl "{PATH}"
# We don't need these secrets at this point, so clear them out so they don't show up in debugging outputs
BUILDKITE_S3_ACCESS_KEY_ID="" BUILDKITE_S3_SECRET_ACCESS_KEY="" ./.buildkite/build_tutorial.sh {PATH}
- label: ":rocket: Publish {PATH}"
env:
BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET: ${BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET?}
plugins:
- staticfloat/cryptic#v2:
variables:
- BUILDKITE_S3_ACCESS_KEY_ID="U2FsdGVkX1/ckce1vUF8A17rHLxcAlAou4aokaeS8YL6omsA1Vq1IDZko5cL1Z+t"
- BUILDKITE_S3_SECRET_ACCESS_KEY="U2FsdGVkX1+SPF81nkK7KQ64DsafSl0qq2iG7BsQs1xlTYEtZV3MqQl3l/NWaiocaEywZZFbAB5zpnKPD0xHTQ=="
- BUILDKITE_S3_ACCESS_KEY_ID="U2FsdGVkX1+WPOr26vcEpOV6IfWQ/wwzUGjFRYux1AFtQjongCK2rnzySL6mkLdR"
- BUILDKITE_S3_SECRET_ACCESS_KEY="U2FsdGVkX19cbtDEWMwL+gpAtByCS8SJzX0hZ6qZ68L2bfjgAWJhbkb14T9uNwJZgKzWymvy0G9LwnJD/0VQ+Q=="
- BUILDKITE_S3_DEFAULT_REGION="U2FsdGVkX1/cORlxhXcxhja2JkqC0f8RmaGYxvGBbEg="
files:
- .buildkite/ssh_deploy.key
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/UpdateManifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
version: 1
- uses: julia-actions/cache@v1
- name: "Update Manifest.toml files"
run: find tutorials/ -type f -name Manifest.toml -exec julia --color=yes -e "using Pkg; Pkg.activate(dirname(ARGS[1])); Pkg.instantiate(); Pkg.update()'" {} \;
run: find tutorials/ -type f -name Manifest.toml -exec julia --color=yes -e "using Pkg; Pkg.activate(dirname(ARGS[1])); Pkg.instantiate(); Pkg.update()" {} \;
- run: git status
- uses: peter-evans/create-pull-request@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion tutorials/00-introduction/00_introduction.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ rand(coinflip(; N))
```

The model can be conditioned on some observations with `|`.
See the [documentation of the `condition` syntax](https://turinglang.github.io/DynamicPPL.jl/stable/api/#Condition-and-decondition) in DynamicPPL.jl for more details.
See the [documentation of the `condition` syntax](https://turinglang.github.io/DynamicPPL.jl/stable/api/#Condition-and-decondition) in `DynamicPPL.jl` for more details.
In the conditioned `model` the observations `y` are fixed to `data`.

```julia
Expand Down
Loading

0 comments on commit 1009fe5

Please sign in to comment.