Skip to content

Commit

Permalink
fix test predict.jl UnfoldSim update
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Oct 15, 2024
1 parent 27646c9 commit 628f670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/predict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ p = predict(m; overlap = false)
pt = Unfold.result_to_table(m, p, repeat([evts], 2))

@show pt[[1, 2, 3], :yhat]
@test all(isapprox.(pt[[1, 2, 3], :yhat], 0.293292035997; atol = 0.01))
@test all(isapprox.(pt[[1, 2, 3], :yhat], -0.14433389682745668; atol = 0.01))
@test all(pt[[1, 2, 3], :channel] .== [1, 2, 3])
@test all(pt[[1, 2, 3], :channel] .== [1, 2, 3])
@test all(
pt[[1, 6 * 112 + 1, 3 * 112 + 1], :continuous] .≈ [5, 1.6666666667, -2.7777777778],
pt[[1, 6 * 112 + 1, 3 * 112 + 1], :continuous] .≈ [2.7777777778, -1.6666666667, -5.0],
)


Expand Down

0 comments on commit 628f670

Please sign in to comment.