Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rel path outputs #347

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion weis/inputs/analysis_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties:
folder_output:
type: string
default: output
description: Name of folder to dump output files
description: Name of folder to dump output files. The path can be absolute or relative. When a relative path is defined, the path starts from folder where WEIS is run.
fname_output:
type: string
default: output
Expand Down
Loading