Skip to content

Commit

Permalink
get rid of sol_kws in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Oct 11, 2023
1 parent 0b433d1 commit 2feed2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function solve(o::Calibrate; callback)

probs = [EasyModelAnalysis.remake(prob, p = Pair.(first.(p_posterior), getindex.(pvalues,i))) for i in 1:length(p_posterior[1][2])]
enprob = EasyModelAnalysis.EnsembleProblem(probs)
ensol = solve(enprob; saveat = 1, solve_kws = (callback = callback, kwargshandle = :KeywordArgSilent))
ensol = solve(enprob; saveat = 1)
outs = map(1:length(probs)) do i
mats = stack(ensol[i][statenames])'
headers = string.("ensemble",i,"_", statenames)
Expand All @@ -242,7 +242,7 @@ function solve(o::Calibrate; callback)
fit = EasyModelAnalysis.datafit(prob, init_params, o.data, solve_kws = (callback = callback,))
else
init_params = Pair.(EasyModelAnalysis.ModelingToolkit.Num.(first.(o.priors)), tuple.(minimum.(last.(o.priors)), maximum.(last.(o.priors))))
fit = EasyModelAnalysis.global_datafit(prob, init_params, o.data, solve_kws = (callback = callback, kwargshandle = :KeywordArgSilent))
fit = EasyModelAnalysis.global_datafit(prob, init_params, o.data, solve_kws = (callback = callback,))
end

newprob = EasyModelAnalysis.DifferentialEquations.remake(prob, p=fit)
Expand Down

0 comments on commit 2feed2d

Please sign in to comment.