From c5ece88297ea388911ec3400125759eb47f7d94c Mon Sep 17 00:00:00 2001
From: leufen1 <l.leufen@fz-juelich.de>
Date: Wed, 6 Oct 2021 17:11:20 +0200
Subject: [PATCH] csv file is now created only when results are 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 5a3941e4..56b5c363 100644
--- a/mlair/run_modules/post_processing.py
+++ b/mlair/run_modules/post_processing.py
@@ -110,6 +110,8 @@ class PostProcessing(RunEnvironment):
                 bootstrap_type = self.data_store.get("bootstrap_type", "postprocessing")
                 self.bootstrap_postprocessing(create_new_bootstraps, bootstrap_type=bootstrap_type,
                                               bootstrap_method=bootstrap_method)
+            if self.bootstrap_skill_scores is not None:
+                self.report_bootstrap_results(self.bootstrap_skill_scores)
 
         # skill scores and error metrics
         with TimeTracking(name="calculate skill scores"):
-- 
GitLab