Skip to content

Commit

Permalink
Merge pull request #802 from MetOffice/parsing_decimals
Browse files Browse the repository at this point in the history
Parsing of float in workflow
  • Loading branch information
jfrost-mo authored Aug 19, 2024
2 parents b4d4bbd + 2d1098c commit 0578c9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
[runtime]
{% for model_field in LFRIC_MODEL_LEVEL_MODEL_FIELDS %}
{% for mlevel in LFRIC_MODEL_LEVELS %}
[[process_lfric_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{mlevel}}]]
{% set formatted_level = mlevel|string|replace('.', 'p') %}
[[process_lfric_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{formatted_level}}]]
inherit = PARALLEL
[[[environment]]]
CSET_RECIPE_NAME = "lfric_generic_mlevel_spatial_plot_sequence.yaml"
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{mlevel}}'"

[[collate_lfric_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{mlevel}}]]
[[collate_lfric_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{formatted_level}}]]
inherit = COLLATE
[[[environment]]]
CSET_RECIPE_NAME = "lfric_generic_mlevel_spatial_plot_sequence.yaml"
Expand Down
5 changes: 3 additions & 2 deletions cset-workflow/includes/plot_spatial_mlevel_model_field.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
[runtime]
{% for model_field in MODEL_LEVEL_MODEL_FIELDS %}
{% for mlevel in UM_MODEL_LEVELS %}
[[process_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{mlevel}}]]
{% set formatted_level = mlevel|string|replace('.', 'p') %}
[[process_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{formatted_level}}]]
inherit = PARALLEL
[[[environment]]]
CSET_RECIPE_NAME = "generic_mlevel_spatial_plot_sequence.yaml"
CSET_ADDOPTS = "--VARNAME='{{model_field}}' --MLEVEL='{{mlevel}}'"

[[collate_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{mlevel}}]]
[[collate_generic_mlevel_spatial_plot_sequence_{{model_field}}_{{formatted_level}}]]
inherit = COLLATE
[[[environment]]]
CSET_RECIPE_NAME = "generic_mlevel_spatial_plot_sequence.yaml"
Expand Down

0 comments on commit 0578c9b

Please # to comment.