Skip to content
Snippets Groups Projects
Commit 011dcb46 authored by leufen1's avatar leufen1
Browse files

another adjustment for cases that no observation but a competitor is available

parent e4abe526
No related branches found
No related tags found
9 merge requests!353add developments to release v1.5.0,!352Resolve "release v1.5.0",!351Lukas issue337 bug ci pipeline fails for docs,!350Resolve "upgrade code to TensorFlow V2",!343Update wrf with develop,!342Include sample-uncertainty to wrf workflow,!340Lukas issue332 feat report error metrics for all competitors,!336Resolve "report error metrics for all competitors",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #80669 passed
...@@ -785,6 +785,8 @@ class PostProcessing(RunEnvironment): ...@@ -785,6 +785,8 @@ class PostProcessing(RunEnvironment):
# test errors of competitors # test errors of competitors
for model_type in remove_items(model_list or [], errors.keys()): 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(): if model_type not in errors.keys():
errors[model_type] = {} errors[model_type] = {}
errors[model_type][station] = statistics.calculate_error_metrics( errors[model_type][station] = statistics.calculate_error_metrics(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment