@@ -29,14 +29,14 @@ function get_period(lc::Vector{Float64}, prob::ODEProblem)::Number
2929 condition (u, _, _) = u[1 ]+ 20
3030 NUM_TIMES_EFFECT_HIT:: Int = 0
3131 function affect! (integrator)
32- NUM_TIMES_EFFECT_HIT += 1
32+ NUM_TIMES_EFFECT_HIT += 1
3333 if NUM_TIMES_EFFECT_HIT >= 2
3434 terminate! (integrator)
3535 end
3636 end
3737 cb = ContinuousCallback (condition, affect!, nothing ;
3838 save_positions = (true , false ))
39- sol = DifferentialEquations. solve (prob, Tsit5 (), u0= lc, tspan= (0.0 , 10.0 ), maxiters= 1e9 ,
39+ sol = DifferentialEquations. solve (prob, Tsit5 (), u0= lc, tspan= (0.0 , 10.0 ), maxiters= 1e9 ,
4040 save_everystep= false , save_start= false , save_end= false , callback= cb)
4141 period = sol. t[end ]- sol. t[1 ]
4242 return period
134134
135135sol_pulse, odedata, period = saveData ()
136136
137- res = optimiseParameters ()
137+ # res = optimiseParameters()
138138
139- solMLE = plotData (sol_pulse, odedata, res. minimizer, period)
139+ # solMLE = plotData(sol_pulse, odedata, res.minimizer, period)
0 commit comments