Skip to content

Commit

Permalink
Update stan_inference.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Apr 12, 2020
1 parent f7b6f70 commit efa09e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stan_inference.jl
Expand Up @@ -123,7 +123,7 @@ function stan_inference(prob::DiffEqBase.DEProblem,t,data,priors = nothing;alg=:
"""
if isnothing(diffeq_string)
diffeq_string = ModelingToolkit.build_function(
sys.eqs,sys.dvs,
sys.eqs,sys.states,
sys.ps,sys.iv,
fname = :sho,
target = ModelingToolkit.StanTarget()
Expand Down Expand Up @@ -167,4 +167,4 @@ function stan_inference(prob::DiffEqBase.DEProblem,t,data,priors = nothing;alg=:
parameter_estimation_data = Dict("u0"=>prob.u0, "T" => length(t), "internal_var___u" => view(data, :, 1:length(t))', "t0" => prob.tspan[1], "ts" => t)
return_code, chains, cnames = CmdStan.stan(stanmodel, [parameter_estimation_data]; CmdStanDir=CMDSTAN_HOME)
return StanModel(stanmodel, return_code, chains, cnames)
end
end

0 comments on commit efa09e8

Please sign in to comment.