Skip to content

Commit

Permalink
when rel path is provided for output folder, that refers from running…
Browse files Browse the repository at this point in the history
… dir, not where analysis options is located. consistency with WISDEM
  • Loading branch information
ptrbortolotti committed Jan 23, 2025
1 parent a6b86b3 commit bcc68ef
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions weis/glue_code/runWEIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcc68ef

Please sign in to comment.