Skip to content

fix GetAlgoParams validation: pre-coercion checks and jitter_size=0#16

Merged
bmgaldo merged 2 commits into
mainfrom
improve-algo-params-tests
May 12, 2026
Merged

fix GetAlgoParams validation: pre-coercion checks and jitter_size=0#16
bmgaldo merged 2 commits into
mainfrom
improve-algo-params-tests

Conversation

@bmgaldo

@bmgaldo bmgaldo commented May 12, 2026

Copy link
Copy Markdown
Owner

Check finiteness and length before as.integer() for n_params, n_particles,
and n_iter — previously as.integer(Inf) silently produced NA with a warning
instead of a clean error, and using | instead of || caused "condition has
length > 1" when vectors were passed. Also fixes jitter_size=0 incorrectly
rejected despite docs saying it disables jitter.

bmgaldo added 2 commits May 11, 2026 21:48
                                                                                                                                                              Check finiteness and length before as.integer() for n_params, n_particles,
  and n_iter — previously as.integer(Inf) silently produced NA with a warning
  instead of a clean error, and using | instead of || caused "condition has
  length > 1" when vectors were passed. Also fixes jitter_size=0 incorrectly
  rejected despite docs saying it disables jitter.
@bmgaldo bmgaldo merged commit e72abe2 into main May 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant