From 37fc2b783b0a083fa0db6d65c6f59becb6ed3558 Mon Sep 17 00:00:00 2001 From: Robb Date: Wed, 8 Mar 2023 15:30:27 -0500 Subject: [PATCH] Cleanup things I missed in the last PR --- apps/backend/app.py | 4 +++- apps/backend/modules/runner.py | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/backend/app.py b/apps/backend/app.py index 0ba843c5..d0d112d9 100644 --- a/apps/backend/app.py +++ b/apps/backend/app.py @@ -125,6 +125,8 @@ def run_batch(data): try: #Running the Experiment conduct_experiment(expId, expRef, experimentOutput, resultOutput, filepath, filetype, numExperimentsToRun) + + # Post Processing if postProcess: print("Beginning post processing") try: @@ -153,7 +155,7 @@ def run_batch(data): print(f'Experiment {expId} critical failure, not doing any result uploading or post processing') logging.exception(err) except Exception as err: - print(f'Uncaught exception "{err}," the GLADOS code needs to be changed to handle this, not doing any result uploading or post processing') + print(f'Uncaught exception "{err}," the GLADOS code needs to be changed to handle this in a cleaner manner') logging.exception(err) raise err finally: diff --git a/apps/backend/modules/runner.py b/apps/backend/modules/runner.py index 7199b38f..35ca2ccd 100644 --- a/apps/backend/modules/runner.py +++ b/apps/backend/modules/runner.py @@ -46,10 +46,6 @@ def run_trial(experiment_path, config_path, filetype, trialRun: int): return get_data(process, trialRun) -# def run_trial_v2(trial: Trial): -# pass - - def get_first_line_of_trial_results_csv(filename): try: with open(filename, mode='r', encoding="utf8") as file: