Skip to content

Commit 561003a

Browse files
authored
Merge branch 'main' into 2377_add_ets
2 parents a06aa3a + ab5ed5a commit 561003a

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/CSET/cset_workflow/rose-suite.conf.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ POINT_OBS=False
130130
PRESSURE_LEVELS=[]
131131
SCORES_CATEGORICAL_ETS=False
132132
SCORES_CATEGORICAL_POD=False
133-
SCORES_CATEGORICAL_ENTRIES=[""]
133+
SCORES_CATEGORICAL_ENTRIES=[]
134134
PRESSURE_LEVEL_FIELDS=[]
135135
!!PROB_TEMPERATURE_CONDITION=[]
136136
!!PROB_TEMPERATURE_THRESHOLD=[]

src/CSET/loaders/verification.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
"""Load verification recipes."""
1616

1717
import itertools
18+
import logging
1819

1920
from CSET.recipes import Config, RawRecipe, get_models
2021

22+
logger = logging.getLogger(__name__)
23+
2124

2225
def _get_scores_spatial_methods(conf):
2326
"""Compile list of the required scores spatial plots."""
@@ -292,7 +295,15 @@ def load(conf: Config):
292295
for field_and_method, scores_method in itertools.product(
293296
conf.SCORES_CATEGORICAL_ENTRIES, scores_timeseries_categorical
294297
):
295-
var, op, value = field_and_method.split(",")
298+
try:
299+
var, op, value = field_and_method.split(",")
300+
except ValueError as err:
301+
logger.exception(
302+
f"Invalid value in SCORES_CATEGORICAL_POD_ENTRIES: {field_and_method}",
303+
exc_info=err,
304+
)
305+
# Skip invalid entry.
306+
continue
296307

297308
yield RawRecipe(
298309
recipe=f"surface_categorical_model_obs_{scores_method}.yaml",

0 commit comments

Comments
 (0)