Skip to content

Commit

Permalink
#2816: configure compare task for multiple recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Tomkins committed Oct 4, 2022
1 parent acc3eac commit f732cde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -64,6 +64,7 @@
ROSE_TASK_APP = process
RECIPE_NAME = "recipe_${CYLC_TASK_PARAM_fast}.yml"


[[process<medium>]]
inherit = None, COMPUTE
[[[environment]]]
Expand All @@ -73,15 +74,17 @@
[[compare<fast>]]
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<medium>]]
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' %}

0 comments on commit f732cde

Please sign in to comment.