From f732cdec418243cdbf222ef701bd122075ae560e Mon Sep 17 00:00:00 2001 From: Katherine Tomkins Date: Tue, 4 Oct 2022 14:01:04 +0100 Subject: [PATCH] #2816: configure compare task for multiple recipes --- .../app/compare/bin/compare_task_runner.sh | 2 +- .../recipe_test_workflow/recipe_test_workflow/flow.cylc | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/app/compare/bin/compare_task_runner.sh b/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/app/compare/bin/compare_task_runner.sh index 934f84c2f9..c711e6aeec 100755 --- a/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/app/compare/bin/compare_task_runner.sh +++ b/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/app/compare/bin/compare_task_runner.sh @@ -10,4 +10,4 @@ KGO="${KGO_ROOT_PATH}/recipe_${KGO_METRIC}*" COMPARE_SCRIPT="${ESMVALTOOL_DIR}/esmvaltool/utils/testing/regression/compare.py" # Run the compare script. -python "${COMPARE_SCRIPT}" ${FOLDER_NAME} ${KGO} +python "${COMPARE_SCRIPT}" ${KGO} ${FOLDER_NAME} diff --git a/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/flow.cylc b/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/flow.cylc index 1320ba74d9..c8dd6b8bfb 100644 --- a/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/flow.cylc +++ b/esmvaltool/utils/recipe_test_workflow/recipe_test_workflow/flow.cylc @@ -20,9 +20,9 @@ env-script = "eval $(rose task-env)" [[[environment]]] MODULE_NAME = {{ MODULE_NAME }} + OUTPUT_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT} USER_CONFIG_DIR = ${CYLC_WORKFLOW_RUN_DIR}/etc USER_CONFIG_PATH = ${USER_CONFIG_DIR}/config-user.yml - OUTPUT_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT} ESMVALCORE_DIR = ${CYLC_WORKFLOW_RUN_DIR}/lib/ESMValCore ESMVALTOOL_DIR = ${CYLC_WORKFLOW_RUN_DIR}/lib/ESMValTool PYTHONPATH_PREPEND = ${ESMVALCORE_DIR}:${ESMVALTOOL_DIR} @@ -64,6 +64,7 @@ ROSE_TASK_APP = process RECIPE_NAME = "recipe_${CYLC_TASK_PARAM_fast}.yml" + [[process]] inherit = None, COMPUTE [[[environment]]] @@ -73,15 +74,17 @@ [[compare]] inherit = None, COMPUTE [[[environment]]] + OUTPUT_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/1 ROSE_TASK_APP = compare - KGO_METRIC = "${CYLC_TASK_PARAM_metric}" + KGO_METRIC = "${CYLC_TASK_PARAM_fast}" KGO_ROOT_PATH = {{ KGO_ROOT_PATH }} [[compare]] inherit = None, COMPUTE [[[environment]]] + OUTPUT_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/1 ROSE_TASK_APP = compare - KGO_METRIC = "${CYLC_TASK_PARAM_metric}" + KGO_METRIC = "${CYLC_TASK_PARAM_medium}" KGO_ROOT_PATH = {{ KGO_ROOT_PATH }} {% include 'site/' ~ SITE ~ '.cylc' %}