Skip to content

Commit c4c0b01

Browse files
Add structure changes to preprocess_submssion script
1 parent d9f0e81 commit c4c0b01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/submission/preprocess_submission.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ def clean_invalid_results(args, log_path, config, system_desc, system_json,
305305
if not args.nomove_failed_to_open:
306306
target_code_path = change_first_directory_to_open(
307307
model_code_path)
308+
target_code_path = change_folder_name_in_path(
309+
log_path, "code", "src")
308310
target_results_path = change_first_directory_to_open(
309311
model_results_path)
310312
target_measurements_path = change_first_directory_to_open(
@@ -543,9 +545,9 @@ def infer_scenario_results(args, config):
543545
shutil.copytree(high_accuracy_model_path,
544546
low_accuracy_model_path)
545547
high_accuracy_model_code_path = os.path.join(log_path, "..",
546-
"code", model)
548+
"src", model)
547549
low_accuracy_model_code_path = os.path.join(log_path, "..",
548-
"code", low_accuracy_model)
550+
"src", low_accuracy_model)
549551
if not os.path.exists(
550552
low_accuracy_model_code_path):
551553
shutil.copytree(high_accuracy_model_code_path,

0 commit comments

Comments
 (0)