Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typos CI #314

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
13 changes: 13 additions & 0 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
Missings = "Missings"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/dynamichmc_inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/turing_inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading