From 6566ef24ebef1079cdc46cea7d1190ac152c5d09 Mon Sep 17 00:00:00 2001 From: Ryan Howard Date: Tue, 11 Jun 2024 16:45:01 -0400 Subject: [PATCH] fix(hardware-testing): lld script fixes (#15378) # Overview Missed a few things when I merged in edge to a long standing testing branch that I caught when I started using it on a robot # Test Plan # Changelog # Review requests # Risk assessment --- .../opentrons/hardware_control/backends/ot3controller.py | 2 +- .../hardware_testing/liquid_sense/post_process.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/src/opentrons/hardware_control/backends/ot3controller.py b/api/src/opentrons/hardware_control/backends/ot3controller.py index 438dc42303f..791f81b1542 100644 --- a/api/src/opentrons/hardware_control/backends/ot3controller.py +++ b/api/src/opentrons/hardware_control/backends/ot3controller.py @@ -1367,7 +1367,7 @@ async def liquid_probe( self._subsystem_manager.device_info[ SubSystem.of_mount(mount) ].revision.tertiary - == "1" + != "1" ): raise UnsupportedHardwareCommand( "Liquid Probe not supported on this pipette firmware" diff --git a/hardware-testing/hardware_testing/liquid_sense/post_process.py b/hardware-testing/hardware_testing/liquid_sense/post_process.py index 680f8c7cdc4..0c4e80df713 100644 --- a/hardware-testing/hardware_testing/liquid_sense/post_process.py +++ b/hardware-testing/hardware_testing/liquid_sense/post_process.py @@ -250,7 +250,7 @@ def process_csv_directory( # noqa: C901 transposed_pressure_rows = list(map(list, zip(*pressure_rows))) try: google_sheet.batch_update_cells( - sheet_name, transposed_pressure_rows, "H", 11, sheet_id + transposed_pressure_rows, "H", 11, sheet_id ) except google_sheets_tool.google_interaction_error: ui.print_error("Did not write pressure data to google sheet.") @@ -284,7 +284,7 @@ def process_google_sheet( test_info, ] num_of_trials = run_args.trials # type: ignore[attr-defined] - google_sheet.batch_update_cells(sheet_name, test_parameters, "A", 1, sheet_id) + google_sheet.batch_update_cells(test_parameters, "A", 1, sheet_id) target_height = google_sheet.get_cell(sheet_name, "B9") ui.print_info(target_height) last_trial_row = 10 + num_of_trials @@ -295,7 +295,7 @@ def process_google_sheet( normalized_height = [ float(height) - float(target_height) for height in adjusted_height ] - google_sheet.batch_update_cells(sheet_name, [normalized_height], "F", 11, sheet_id) + google_sheet.batch_update_cells([normalized_height], "F", 11, sheet_id) # Find accuracy, precision, repeatability try: accuracy = statistics.mean(normalized_height) @@ -307,7 +307,7 @@ def process_google_sheet( ["Accuracy (mm)", "Precision (+/- mm)", "Repeatability (%)"], [accuracy, precision, 100.0 - 100.0 * repeatability_error], ] - google_sheet.batch_update_cells(sheet_name, summary, "D", 2, sheet_id) + google_sheet.batch_update_cells(summary, "D", 2, sheet_id) except google_sheets_tool.google_interaction_error: ui.print_error("stats didn't work.")