Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Jun 30, 2024
1 parent ff7cb48 commit 1dac724
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/ext/CoupledSDEsBaisin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Attractors, ChaosTools
# Define systems
g = diag_noise_function(0.215)
system = CoupledSDEs(fitzhugh_nagumo, g, [2.0, 0.1], [0.1, 3.0, 1.0, 1.0, 1.0, 0.0])
system = CoupledSDEs(CT.fitzhugh_nagumo, g, [2.0, 0.1], [0.1, 3.0, 1.0, 1.0, 1.0, 0.0])

# Set up domain
A, B, C = [0.0, 0.0], [1.0, 0.0], [0.0, 1.0]
Expand Down
2 changes: 1 addition & 1 deletion test/largedeviations/MAM.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@testset "MAM FitzHugh-Nagumo" begin
p = [0.1, 3, 1, 1, 1, 0]
fhn = CoupledSDEs(fitzhugh_nagumo, diag_noise_function(0.1), zeros(2), p)
fhn = CoupledSDEs(CT.fitzhugh_nagumo, diag_noise_function(0.1), zeros(2), p)
x_i = SA[sqrt(2 / 3), sqrt(2 / 27)]
x_f = SA[0.001, 0.0]
N, T = 200, 2.0
Expand Down
2 changes: 1 addition & 1 deletion test/largedeviations/action_fhn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Random.seed!(SEED)
# System setup - FitzHugh-Nagumo model
p = [1.0, 3.0, 1.0, 1.0, 1.0, 0.0] # Parameters (ϵ, β, α, γ, κ, I)
σ = 0.215 # noise strength
sys = CoupledSDEs(fitzhugh_nagumo, diag_noise_function(σ), zeros(2), p; seed=SEED)
sys = CoupledSDEs(CT.fitzhugh_nagumo, diag_noise_function(σ), zeros(2), p; seed=SEED)

A = inv(CT.covariance_matrix(sys))
T, N = 2.0, 100
Expand Down
2 changes: 1 addition & 1 deletion test/largedeviations/gMAM.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@testset "gMAM FitzHugh-Nagumo" begin
p = [0.1, 3, 1, 1, 1, 0]
fhn = CoupledSDEs(fitzhugh_nagumo, diag_noise_function(0.1), zeros(2), p)
fhn = CoupledSDEs(CT.fitzhugh_nagumo, diag_noise_function(0.1), zeros(2), p)
x_i = SA[sqrt(2 / 3), sqrt(2 / 27)]
x_f = SA[0.001, 0.0]
N = 100
Expand Down
4 changes: 2 additions & 2 deletions test/trajactories/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
p = [0.1, 3.0, 1.0, 1.0, 1.0, 0.0] # Parameters (ϵ, β, α, γ, κ, I)
σ = 0.1
# Simulate
sys = CoupledSDEs(fitzhugh_nagumo, diag_noise_function(σ), SA[1.0, 0.0], p)
sys = CoupledSDEs(CT.fitzhugh_nagumo, diag_noise_function(σ), SA[1.0, 0.0], p)
traj = trajectory(sys, 10)
sys = CoupledSDEs(fitzhugh_nagumo, diag_noise_function(σ), SA[1.0, 0.0], p)
sys = CoupledSDEs(CT.fitzhugh_nagumo, diag_noise_function(σ), SA[1.0, 0.0], p)
sim = simulate(sys, 10)
@test traj[1][1, 1] == 1.0
@test sim.u[1][1] == 1.0
Expand Down
2 changes: 1 addition & 1 deletion test/trajactories/transition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
σ = 0.215 # noise strength

# CoupledSDEs
sys = CoupledSDEs(fitzhugh_nagumo, diag_noise_function(σ), zeros(2), p; seed=SEED)
sys = CoupledSDEs(CT.fitzhugh_nagumo, diag_noise_function(σ), zeros(2), p; seed=SEED)

fp1 = [0.816, 0.272]
fp2 = [-0.816, -0.272]
Expand Down

0 comments on commit 1dac724

Please sign in to comment.