Skip to content

Commit

Permalink
Bug fix for verify_steady_state (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlperla authored Aug 25, 2022
1 parent f9f0954 commit 8e4a100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DifferentiableStateSpaceModels"
uuid = "beacd9db-9e5e-4956-9b09-459a4b2028df"
authors = ["Jesse Perla <jesseperla@gmail.com> and contributors"]
version = "0.5.1"
version = "0.5.2"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
2 changes: 1 addition & 1 deletion src/generate_perturbation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function verify_steady_state(m, p_d, p_f; atol = 1e-8, args...)
p_d_symbols = collect(Symbol.(keys(p_d)))
p = order_vector_by_symbols(merge(p_d, p_f), m.mod.m.p_symbols)

w = hcat(sol.y, sol.x) # get a vector for the proposed steadystate
w = vcat(sol.y, sol.x) # get a vector for the proposed steadystate
H = Vector{Float64}(undef, length(w)) # allocate it, but leave undef to make sure we can see if it goes to 0 or not
m.mod.m.H̄!(H, w, p) # evaluate in place
return (norm(H) < atol)
Expand Down

2 comments on commit 8e4a100

@jlperla
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/67083

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.2 -m "<description of version>" 8e4a100ad926b27b1ab58d0c67af6ffbdec5103b
git push origin v0.5.2

Please sign in to comment.