From c5911e147374dd8abc7f87a6ef61447586d0eb8f Mon Sep 17 00:00:00 2001 From: cbernalz Date: Sun, 1 Sep 2024 20:11:04 -0700 Subject: [PATCH] 2024-09-01 update : fixing forwdiff. error. --- src/uciwweihr_model.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/uciwweihr_model.jl b/src/uciwweihr_model.jl index ce74c42..54f6d5e 100644 --- a/src/uciwweihr_model.jl +++ b/src/uciwweihr_model.jl @@ -123,15 +123,16 @@ The defaults for this fuction will follow those of the default simulation in gen for t in obstimes_hosp if haskey(obstime_to_index, t) index = convert(Int64, obstime_to_index[t]) - push!(h_sol_vals, sol_hosp[index]) - data_hosp[index] ~ NegativeBinomial2(sol_hosp[index], sigma_hosp) + sol_hosp_value = Float64(sol_hosp[index]) + push!(h_sol_vals, sol_hosp_value) + data_hosp[index] ~ NegativeBinomial2(sol_hosp_value, sigma_hosp) end end for t in obstimes_wastewater if haskey(obstime_to_index, t) index = convert(Int64, obstime_to_index[t]) - log_genes_mean = log(I_comp_sol[index]) + log(rho_gene) + log_genes_mean = log(Float64(I_comp_sol[index])) + log(rho_gene) push!(log_genes_mean_vals, log_genes_mean) data_wastewater[index] ~ GeneralizedTDist(log_genes_mean, tau, df) end