From bcc68efe2106df86bd16e8751f7fae901e983ed9 Mon Sep 17 00:00:00 2001 From: ptrbortolotti Date: Thu, 23 Jan 2025 10:49:04 -0700 Subject: [PATCH] when rel path is provided for output folder, that refers from running dir, not where analysis options is located. consistency with WISDEM --- weis/glue_code/runWEIS.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/weis/glue_code/runWEIS.py b/weis/glue_code/runWEIS.py index d07cb6164..bda9a2fd6 100644 --- a/weis/glue_code/runWEIS.py +++ b/weis/glue_code/runWEIS.py @@ -67,10 +67,6 @@ def run_weis(fname_wt_input, fname_modeling_options, fname_opt_options, color_i = 0 rank = 0 - # make the folder_output relative to the input, if it's a relative path - analysis_input_dir = os.path.dirname(opt_options['fname_input_analysis']) - opt_options['general']['folder_output'] = os.path.join(analysis_input_dir,opt_options['general']['folder_output']) - folder_output = opt_options['general']['folder_output'] if rank == 0 and not os.path.isdir(folder_output): os.makedirs(folder_output,exist_ok=True)