Skip to content

Commit aced008

Browse files
committed
fix typo sol_temp -> temp
1 parent 8161d4b commit aced008

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cost_functions.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ function (f::L2Loss)(sol::DiffEqBase.DESolution)
3939
colloc_grad = f.colloc_grad
4040
dudt = f.dudt
4141

42-
if sol_tmp isa DiffEqBase.AbstractEnsembleSolution
43-
failure = any((s.retcode != :Success for s in sol_tmp)) && any((s.retcode != :Terminated for s in sol_tmp))
42+
if sol isa DiffEqBase.AbstractEnsembleSolution
43+
failure = any((s.retcode != :Success for s in sol)) && any((s.retcode != :Terminated for s in sol))
4444
else
45-
failure = sol_tmp.retcode != :Success && sol_tmp != :Terminated
45+
failure = sol.retcode != :Success && sol != :Terminated
4646
end
4747
failure && return Inf
4848

@@ -127,10 +127,10 @@ LogLikeLoss(t,data_distributions,diff_distributions) = LogLikeLoss(t,matrixize(d
127127

128128
function (f::LogLikeLoss)(sol::DESolution)
129129
distributions = f.data_distributions
130-
if sol_tmp isa DiffEqBase.AbstractEnsembleSolution
131-
failure = any((s.retcode != :Success for s in sol_tmp)) && any((s.retcode != :Terminated for s in sol_tmp))
130+
if sol isa DiffEqBase.AbstractEnsembleSolution
131+
failure = any((s.retcode != :Success for s in sol)) && any((s.retcode != :Terminated for s in sol))
132132
else
133-
failure = sol_tmp.retcode != :Success && sol_tmp != :Terminated
133+
failure = sol.retcode != :Success && sol != :Terminated
134134
end
135135
failure && return Inf
136136
ll = 0.0

0 commit comments

Comments
 (0)