Skip to content

Commit

Permalink
relax type for generated y_t
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Mar 6, 2024
1 parent 0c03621 commit f80d941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EpiAware/test/test_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
gen = generated_quantities(test_mdl, rand(test_mdl))

#Check model sampled
@test eltype(gen.generated_y_t) <: Integer
@test eltype(gen.generated_y_t) <: AbstractFloat
@test eltype(gen.I_t) <: AbstractFloat
@test length(gen.I_t) == time_horizon
end
Expand Down Expand Up @@ -71,7 +71,7 @@ end
gens = generated_quantities(test_mdl, chn)

#Check model sampled
@test eltype(gens[1].generated_y_t) <: Integer
@test eltype(gens[1].generated_y_t) <: AbstractFloat
@test eltype(gens[1].I_t) <: AbstractFloat
@test length(gens[1].I_t) == time_horizon
end
Expand Down Expand Up @@ -110,7 +110,7 @@ end
gens = generated_quantities(test_mdl, chn)

#Check model sampled
@test eltype(gens[1].generated_y_t) <: Integer
@test eltype(gens[1].generated_y_t) <: AbstractFloat
@test eltype(gens[1].I_t) <: AbstractFloat
@test length(gens[1].I_t) == time_horizon
end

0 comments on commit f80d941

Please sign in to comment.