Skip to content

Commit

Permalink
Update check for NaNs in log likelihood
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Jun 27, 2024
1 parent 5cc1b28 commit d50e35a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StratMetropolis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@
copyto!(sample_height, sample_heightₚ)
# acceptancedist[i] = true
end
isnan(ll) && error("Log likelihood is `NaN`")

# Update progress meter every `pgrs_interval` steps
mod(n,pgrs_interval)==0 && update!(pgrs, n)
Expand Down Expand Up @@ -861,7 +862,7 @@
copyto!(duration, durationₚ)
copyto!(sample_height, sample_heightₚ)
end
isnan(ll) && error("aaaaaaaaaaaaa")
isnan(ll) && error("Log likelihood is `NaN`")

# Record sieved results
if mod(n,sieve) == 0
Expand Down

0 comments on commit d50e35a

Please sign in to comment.