Skip to content

Commit

Permalink
make copy in check_number_per_forecast()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse authored and seabbs committed Mar 25, 2024
1 parent 488fa25 commit 7da26e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/check-input-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ ensure_model_column <- function(data) {
#' @inherit document_check_functions params return
#' @keywords internal_input_check
check_number_per_forecast <- function(data, forecast_unit) {
data <- ensure_data.table(data)
data <- na.omit(data)
# check whether there are the same number of quantiles, samples --------------
data[, scoringutils_InternalNumCheck := length(predicted), by = forecast_unit]
Expand Down

0 comments on commit 7da26e6

Please sign in to comment.