Skip to content

Commit

Permalink
fix scenario seting easily
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhanwei-Liu committed Jul 1, 2023
1 parent 82bf396 commit dae5e0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified input/carbon_100.xlsx
Binary file not shown.
7 changes: 7 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ def setup(params_data, args):
input_filename = str(config_data['general_parameters']['input_folder'])
input_filepath = path.join(filepath, input_filename)

# update command-line arguments to set different scenarios easily.
for param in params_data.keys():
if getattr(args, param) is None:
pass
else:
params_data[param]["file_name"] = params_data[param]["file_name"] + f"_{getattr(args, param)}"

# Load parameters data
parameters = load_data(params_data, input_filepath)

Expand Down

0 comments on commit dae5e0b

Please sign in to comment.