Skip to content

Commit 4ba650e

Browse files
committed
Fixing / and \ in argument names for log
1 parent adbe2af commit 4ba650e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/mcell4_runner/mcell3_runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def run_mcell3(args_str_w_opts):
5555

5656
print("Running " + cmd_str)
5757

58-
args_log = args_str.replace(' ', '_').replace('-', '_')
58+
args_log = args_str.replace(' ', '_').replace('-', '_').replace('\\', '_').replace('/', '_')
5959
log_name = os.path.join(LOGS_DIR, os.path.splitext(opts.main_model_file)[0] + '_' + args_log + '.mcell3.log')
6060

6161
exit_code = 1

utils/mcell4_runner/mcell4_runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def run_mcell4(args_str_w_opts):
174174

175175
print("Running " + cmd_str)
176176

177-
args_log = args_str.replace(' ', '_').replace('-', '_')
177+
args_log = args_str.replace(' ', '_').replace('-', '_').replace('\\', '_').replace('/', '_')
178178
log_name = os.path.join(
179179
LOGS_DIR,
180180
os.path.splitext(os.path.basename(opts.main_model_file))[0] + '_' + args_log + '.mcell4.log')

0 commit comments

Comments
 (0)