Skip to content

Commit

Permalink
feat(abr-testing): Protocol simulator, utilizes opentrons CLI to simu…
Browse files Browse the repository at this point in the history
…late and record information regarding a protocol.
  • Loading branch information
AnthonyNASC20 committed Oct 8, 2024
1 parent 41ba109 commit 2eb36ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion abr-testing/protocol_simulation/simulation_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2eb36ea

Please sign in to comment.