Skip to content

Commit 767051f

Browse files
committed
comment out the optimisation in mcmcSetup
1 parent 08aee35 commit 767051f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcmcSetup.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -134,6 +134,6 @@ end
134134

135135
sol_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

Comments
 (0)