From 0d126fbc39e5f7523bafb0b1be3df96e1f19e6c6 Mon Sep 17 00:00:00 2001 From: dave <dave@dtu.dk> Date: Wed, 16 Dec 2015 13:26:13 +0100 Subject: [PATCH] the dlc_config spreadsheet is assumed to be always in htc/DLCs/dlc_config.xlsx --- wetb/prepost/Simulations.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py index 8dd9bb4..a07b204 100755 --- a/wetb/prepost/Simulations.py +++ b/wetb/prepost/Simulations.py @@ -4447,8 +4447,7 @@ class Cases: # we assume the run_dir (root) is the same every where run_dir = self.cases[case]['[run_dir]'] - htc_dir = self.cases[case]['[htc_dir]'] - fname = os.path.join(run_dir, htc_dir, 'DLCs', 'dlc_config.xlsx') + fname = os.path.join(run_dir, 'htc', 'DLCs', 'dlc_config.xlsx') dlc_cfg = dlc.DLCHighLevel(fname, shape_k=wb.shape_k) # 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) @@ -4583,8 +4582,7 @@ class Cases: # we assume the run_dir (root) is the same every where run_dir = self.cases[list(self.cases.keys())[0]]['[run_dir]'] - htc_dir = self.cases[case]['[htc_dir]'] - fname = os.path.join(run_dir, htc_dir, 'DLCs', 'dlc_config.xlsx') + fname = os.path.join(run_dir, 'htc', 'DLCs', 'dlc_config.xlsx') dlc_cfg = dlc.DLCHighLevel(fname, shape_k=wb.shape_k) # 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) -- GitLab