Skip to content

Commit

Permalink
Merge pull request #349 from JuliaReach/schillic/spellcheck
Browse files Browse the repository at this point in the history
Spell check
  • Loading branch information
schillic authored Nov 3, 2023
2 parents 1fc2f67 + f794caf commit b9f993a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
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: check spelling
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["*.onnx"]
2 changes: 1 addition & 1 deletion src/nnops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function forward(nnet::FeedforwardNetwork, X0::LazySet;
# initial states
xᴾ₀ = _decompose_1D(X0)
xᴾ₀ = array(xᴾ₀) # see https://github.com/JuliaReach/ReachabilityAnalysis.jl/issues/254
xᴾ₀ = [x.dat for x in xᴾ₀] # use concrete inteval matrix-vector operations
xᴾ₀ = [x.dat for x in xᴾ₀] # use concrete interval matrix-vector operations

for layer in nnet.layers # loop over layers
W = layer.weights
Expand Down
2 changes: 1 addition & 1 deletion src/setops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ end

function _reconstruct(method::TaylorModelReconstructor, P₀::LazySet, U₀::Vector{<:LazySet},
R::TaylorModelReachSet{N}, ti) where {N}
@assert length(U₀) == 1 "expected the length of U₀ to be 1, got $(lenght(U₀))"
@assert length(U₀) == 1 "expected the length of U₀ to be 1, got $(length(U₀))"
return _reconstruct(method, P₀, first(U₀), R, ti)
end

Expand Down

0 comments on commit b9f993a

Please sign in to comment.