From aed2dfa0d60c502a7c0c87c40b89b76f6d0b2c00 Mon Sep 17 00:00:00 2001 From: vagudets Date: Mon, 15 Apr 2024 17:11:47 +0200 Subject: [PATCH] Bugfix: modify requested metrics check so that output recipes are properly formatted --- tools/check_recipe.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/check_recipe.R b/tools/check_recipe.R index e11a3dd1..42cb832c 100644 --- a/tools/check_recipe.R +++ b/tools/check_recipe.R @@ -677,7 +677,8 @@ check_recipe <- function(recipe) { if ('enscorr' %in% tolower(sc_metrics)) { recipe$Analysis$Workflow$Statistics <- c('std', 'cov', 'n_eff') } - recipe$Analysis$Workflow$Skill$metric <- requested_metrics + recipe$Analysis$Workflow$Skill$metric <- paste0(requested_metrics, + collapse = " ") } if (tolower(recipe$Analysis$Output_format) != 'scorecards') { recipe$Analysis$Output_format <- 'scorecards' -- GitLab