Skip to content

Commit d50e35a

Browse files
committed
Update check for NaNs in log likelihood
1 parent 5cc1b28 commit d50e35a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/StratMetropolis.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@
552552
copyto!(sample_height, sample_heightₚ)
553553
# acceptancedist[i] = true
554554
end
555+
isnan(ll) && error("Log likelihood is `NaN`")
555556

556557
# Update progress meter every `pgrs_interval` steps
557558
mod(n,pgrs_interval)==0 && update!(pgrs, n)
@@ -861,7 +862,7 @@
861862
copyto!(duration, durationₚ)
862863
copyto!(sample_height, sample_heightₚ)
863864
end
864-
isnan(ll) && error("aaaaaaaaaaaaa")
865+
isnan(ll) && error("Log likelihood is `NaN`")
865866

866867
# Record sieved results
867868
if mod(n,sieve) == 0

0 commit comments

Comments
 (0)