Skip to content

Commit

Permalink
throwing maxsites error with message
Browse files Browse the repository at this point in the history
  • Loading branch information
gottacatchenall committed May 1, 2024
1 parent 413262d commit 3deae32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/seed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ function seed!(
)

max_sites = prod(size(uncertainty))
max_sites < sampler.numpoints && throw(TooManySites(sampler.numpoints, max_sites))
max_sites < sampler.numpoints && throw(
TooManySites(
"Cannot select $(sampler.numpoints) sampling sites from $max_sites possible locations.",
),
)
return _generate!(coords, sampler, uncertainty)
end

Expand Down

0 comments on commit 3deae32

Please sign in to comment.