Skip to content

Commit

Permalink
Merge branch 'stan-dev:master' into pareto_k_tail_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
n-kall authored Mar 6, 2024
2 parents f1e25b1 + 5403ae5 commit 23d3e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/weight_draws.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ weights.draws <- function(object, log = FALSE, normalize = TRUE, ...) {

# validate weights and return log weights
validate_weights <- function(weights, draws, log = FALSE) {
checkmate::assert_numeric(weights)
checkmate::assert_numeric(weights, any.missing = FALSE)
checkmate::assert_flag(log)
if (length(weights) != ndraws(draws)) {
stop_no_call("Number of weights must match the number of draws.")
Expand Down

0 comments on commit 23d3e9a

Please sign in to comment.