Skip to content

Commit

Permalink
No longer compare args[2,3] of mixture draw
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarfati committed Aug 26, 2019
1 parent d9273ed commit 48b79e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ d_subset = read(file, "d_subset")
c = read(file, "c")
close(file)

test_θ_new, test_new_mix_density, test_old_mix_density = SMC.mvnormal_mixture_draw(para_subset,
test_θ_new#=, test_new_mix_density, test_old_mix_density=# = SMC.mvnormal_mixture_draw(para_subset,
d_subset; c=c, α=α)

#=JLD2.jldopen("reference/mvnormal_output.jld2", true, true, true, IOStream) do file
Expand All @@ -102,15 +102,15 @@ end=#

file = JLD2.jldopen("reference/mvnormal_output.jld2")
saved_θ_new = read(file, "θ_new")
saved_new_mix_density = read(file, "new_mix_density")
saved_old_mix_density = read(file, "old_mix_density")
#saved_new_mix_density = read(file, "new_mix_density")
#saved_old_mix_density = read(file, "old_mix_density")
close(file)

####################################################################
@testset "MvNormal Mixture Draw" begin
@test test_θ_new == saved_θ_new
@test test_new_mix_density == saved_new_mix_density
@test test_old_mix_density == saved_old_mix_density
#@test test_new_mix_density == saved_new_mix_density
#@test test_old_mix_density == saved_old_mix_density
end

####################################################################
Expand Down

0 comments on commit 48b79e1

Please sign in to comment.