From 2eb36eae2eb1cada75553fb4384dd7605e999b46 Mon Sep 17 00:00:00 2001 From: Tony Ngumah Date: Tue, 8 Oct 2024 14:18:08 -0400 Subject: [PATCH] feat(abr-testing): Protocol simulator, utilizes opentrons CLI to simulate and record information regarding a protocol. --- abr-testing/protocol_simulation/simulation_metrics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abr-testing/protocol_simulation/simulation_metrics.py b/abr-testing/protocol_simulation/simulation_metrics.py index f05946720dd..65d6f5a7995 100644 --- a/abr-testing/protocol_simulation/simulation_metrics.py +++ b/abr-testing/protocol_simulation/simulation_metrics.py @@ -202,7 +202,7 @@ def parse_results_volume(json_data_file: str) -> Tuple[ added_volumes += vol log+=(f"dispensed {vol} ") labware_well_dict[labware_id][well_name] = (labware_name, added_volumes, subtracted_volumes, log) - file_date_formatted = file_date.strftime("%Y-%m-%d_%H-%M-%S") + # file_date_formatted = file_date.strftime("%Y-%m-%d_%H-%M-%S") with open(f"{os.path.dirname(json_data_file)}\\{protocol_name}_well_volumes_{file_date_formatted}.json", "w") as output_file: json.dump(labware_well_dict, output_file) output_file.close() @@ -254,6 +254,7 @@ def main(storage_directory, google_sheet_name, protocol_file_path): global file_date file_date = datetime.now() + global file_date_formatted file_date_formatted = file_date.strftime("%Y-%m-%d_%H-%M-%S") # Prepare output file json_file_path = f"{storage_directory}\\{protocol_name}_{file_date_formatted}.json"