Skip to content

Commit

Permalink
#3724: Fix cylc linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbillowsMO committed Dec 23, 2024
1 parent 50fe052 commit 9127811
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions esmvaltool/utils/recipe_test_workflow/flow.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
{% set SITE_RECIPES_FILE = 'inc/' ~ SITE ~ '-recipes.cylc' %}
{% from SITE_RECIPES_FILE import FAST_RECIPES, MEDIUM_RECIPES %}

{%- set ERROR_MSG =
{% set ERROR_MSG =
"is undefined and must be set, usually in '" ~ SITE_RECIPES_FILE ~ " - see 'How to "
"add a recipe to the RTW' documentation for more information."
-%}
%}
{{ assert(FAST_RECIPES is defined, "FAST_RECIPES " ~ ERROR_MSG)}}
{{ assert(MEDIUM_RECIPES is defined, "MEDIUM_RECIPES " ~ ERROR_MSG)}}

Expand Down
32 changes: 16 additions & 16 deletions esmvaltool/utils/recipe_test_workflow/site/metoffice.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@
[[[directives]]]
--mem = 2G

{% for RECIPE in FAST_RECIPES %}
{% if RECIPE['max_time'] != 'default' and RECIPE['max_memory'] != 'default' %}
[[process<fast={{ RECIPE['recipe_path'] }}>]]
execution time limit = {{ RECIPE['max_time'] }}
[[[directives]]]
--mem = {{ RECIPE['max_memory'] }}
{% endif %}
{% endfor %}
{% for RECIPE in FAST_RECIPES %}
{% if RECIPE['max_time'] != 'default' and RECIPE['max_memory'] != 'default' %}
[[process<fast={{ RECIPE['recipe_path'] }}>]]
execution time limit = {{ RECIPE['max_time'] }}
[[[directives]]]
--mem = {{ RECIPE['max_memory'] }}
{% endif %}
{% endfor %}

{% for RECIPE in MEDIUM_RECIPES %}
{% if RECIPE['max_time'] != 'default' and RECIPE['max_memory'] != 'default' %}
[[process<medium={{ RECIPE['recipe_path'] }}>]]
execution time limit = {{ RECIPE['max_time'] }}
[[[directives]]]
--mem = {{ RECIPE['max_memory'] }}
{% endif %}
{% endfor %}
{% for RECIPE in MEDIUM_RECIPES %}
{% if RECIPE['max_time'] != 'default' and RECIPE['max_memory'] != 'default' %}
[[process<medium={{ RECIPE['recipe_path'] }}>]]
execution time limit = {{ RECIPE['max_time'] }}
[[[directives]]]
--mem = {{ RECIPE['max_memory'] }}
{% endif %}
{% endfor %}

0 comments on commit 9127811

Please sign in to comment.