Skip to content

Commit 32ae84e

Browse files
author
gszep
committed
compat bump for BifurcationKit v0.1.5
1 parent 036700f commit 32ae84e

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BifurcationInference"
22
uuid = "7fe238d6-d31e-4646-aa16-9d8429fd6da8"
33
authors = ["gszep <gregory.szep@gmail.com>"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
BifurcationKit = "0f109fa4-8a5d-4b75-95aa-f515264e7665"
@@ -17,7 +17,7 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1717
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1818

1919
[compat]
20-
BifurcationKit = "0.1"
20+
BifurcationKit = "0.1.5"
2121
Flux = "0.12"
2222
ForwardDiff = "0.10"
2323
InvertedIndices = "1"

src/BifurcationInference.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ module BifurcationInference
108108
try
109109
iterator = ContIterable( f, J, u, parameters, (@lens _.p), hyperparameters, linsolver, verbosity=verbosity)
110110
for state iterator
111-
112-
computeEigenvalues!(iterator,state)
113111
push!(branch,state)
114112
end
115113

test/runtests.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,17 @@ error_tolerance = 0.05
3030
@test acos(x'y/(norm(x)*norm(y)))/π < error_tolerance
3131
end
3232
end
33+
end
34+
35+
using Flux: Optimise
36+
@testset "Gradients" begin
37+
include("applied/two-state.jl")
38+
39+
parameters = ( θ=SizedVector{5}(0.5,0.5,0.5470,2.0,7.5), p=minimum(X.parameter) )
40+
trajectory = train!( F, parameters, X; iter=100, optimiser=Optimise.ADAM(0.01) )
41+
42+
steady_states = deflationContinuation(F,X.roots,(p=minimum(X.parameter),θ=trajectory[end]),getParameters(X))
43+
bifurcations = unique([ s.z for branch steady_states for s branch if s.bif ], atol=3*step(X.parameter) )
44+
45+
@test length(bifurcations) == 2
3346
end

0 commit comments

Comments
 (0)