From 130789b78667ffce33e7d79fd14dfbc5076d7726 Mon Sep 17 00:00:00 2001
From: dave <dave@dtu.dk>
Date: Thu, 24 Nov 2016 09:56:21 +0100
Subject: [PATCH] prepost.Simulations.fatigue_lifetime: raise error if there is
 a missing file

---
 wetb/prepost/Simulations.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index a885941..8e3a024 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -4629,7 +4629,8 @@ class Cases(object):
             # we assume the run_dir (root) is the same every where
             run_dir = self.cases[case]['[run_dir]']
             fname = os.path.join(run_dir, 'dlc_config.xlsx')
-            dlc_cfg = dlc.DLCHighLevel(fname, shape_k=wb.shape_k)
+            dlc_cfg = dlc.DLCHighLevel(fname, shape_k=wb.shape_k,
+                                       fail_on_resfile_not_found=True)
             # if you need all DLCs, make sure to have %s in the file name
             dlc_cfg.res_folder = os.path.join(run_dir, res_dir, dlc_folder)
             fh_lst = dlc_cfg.file_hour_lst(years=years)
-- 
GitLab