From 8434a21c5fb5d4353451543d0b25188fbc24b188 Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Mon, 11 Dec 2023 20:51:34 +0100 Subject: [PATCH] typos CI --- .github/dependabot.yml | 3 +++ .github/workflows/SpellCheck.yml | 13 +++++++++++++ .typos.toml | 2 ++ README.md | 2 +- src/dynamichmc_inference.jl | 2 +- src/turing_inference.jl | 2 +- 6 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/SpellCheck.yml create mode 100644 .typos.toml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 700707ce..1e8a051e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,6 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" + ignore: + - dependency-name: "crate-ci/typos" + update-types: ["version-update:semver-patch"] diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml new file mode 100644 index 00000000..599253c8 --- /dev/null +++ b/.github/workflows/SpellCheck.yml @@ -0,0 +1,13 @@ +name: Spell Check + +on: [pull_request] + +jobs: + typos-check: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v3 + - name: Check spelling + uses: crate-ci/typos@v1.16.23 \ No newline at end of file diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..07b37116 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[default.extend-words] +Missings = "Missings" \ No newline at end of file diff --git a/README.md b/README.md index 7e1bc792..40075764 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ bayesian_result_abc = abc_inference(prob1, Tsit5(), t, data, priors) ### Using save_idxs to declare observables You don't always have data for all of the variables of the model. In case of certain latent variables -you can utilise the `save_idxs` kwarg to declare the oberved variables and run the inference using any +you can utilise the `save_idxs` kwarg to declare the observed variables and run the inference using any of the backends as shown below. ```julia diff --git a/src/dynamichmc_inference.jl b/src/dynamichmc_inference.jl index 4f3e05a2..f555184a 100644 --- a/src/dynamichmc_inference.jl +++ b/src/dynamichmc_inference.jl @@ -40,7 +40,7 @@ function (P::DynamicHMCPosterior)(θ) u0 = convert.(T, sample_u0 ? parameters[1:nu] : problem.u0) p = convert.(T, sample_u0 ? parameters[(nu + 1):end] : parameters) if length(u0) < length(problem.u0) - # assumes u is ordered such that the observed variables are in the begining, consistent with ordered theta + # assumes u is ordered such that the observed variables are in the beginning, consistent with ordered theta for i in length(u0):length(problem.u0) push!(u0, convert(T, problem.u0[i])) end diff --git a/src/turing_inference.jl b/src/turing_inference.jl index 0808c2d6..4174e112 100644 --- a/src/turing_inference.jl +++ b/src/turing_inference.jl @@ -32,7 +32,7 @@ function turing_inference(prob::DiffEqBase.DEProblem, u0 = convert.(T, sample_u0 ? theta[1:nu] : prob.u0) p = convert.(T, sample_u0 ? theta[(nu + 1):end] : theta) if length(u0) < length(prob.u0) - # assumes u is ordered such that the observed variables are in the begining, consistent with ordered theta + # assumes u is ordered such that the observed variables are in the beginning, consistent with ordered theta for i in length(u0):length(prob.u0) push!(u0, convert(T, prob.u0[i])) end