From 011dcb46c9caaa91acda7d9074fc7d9a62516c07 Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Wed, 13 Oct 2021 15:53:06 +0200 Subject: [PATCH] another adjustment for cases that no observation but a competitor is available --- mlair/run_modules/post_processing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlair/run_modules/post_processing.py b/mlair/run_modules/post_processing.py index 01f0d2d0..62cc85ed 100644 --- a/mlair/run_modules/post_processing.py +++ b/mlair/run_modules/post_processing.py @@ -785,6 +785,8 @@ class PostProcessing(RunEnvironment): # test errors of competitors for model_type in remove_items(model_list or [], errors.keys()): + if self.observation_indicator not in combined.coords[self.model_type_dim]: + continue if model_type not in errors.keys(): errors[model_type] = {} errors[model_type][station] = statistics.calculate_error_metrics( -- GitLab