Skip to content

Commit

Permalink
Boost number of trials in simulate_path_walk()
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardlavender committed Oct 23, 2024
1 parent ad7f37a commit f6028e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/007-data-simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function simulate_path_walk(; xinit = Vector, model_move::ModelMove, timeline::V
# Run simulation
for t in 2:nt
for i in 1:np
xi, lwi = simulate_move(xout[i, t - 1], model_move, t, 1_000_000)
xi, lwi = simulate_move(xout[i, t - 1], model_move, t, 10_000_000)
if isinf(lwi)
error("`simulate_path_walk()` failed to simulate a valid step at time $t after 1 million trials. It is likely that `model_move` (which includes the study domain [map] and the movement model) has been incorrectly specified.")
error("`simulate_path_walk()` failed to simulate a valid step at time $t after 10 million trials. It is likely that `model_move` (which includes the study domain [map] and the movement model) has been incorrectly specified.")
end
xout[i, t] = xi
end
Expand Down

0 comments on commit f6028e7

Please sign in to comment.