Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andySigler committed Aug 15, 2024
1 parent 346d310 commit 2accc20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 1 addition & 3 deletions hardware-testing/hardware_testing/liquid_sense/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ def run(
if run_args.dial_front_channel:
y_offset = 0 if run_args.pipette_channels == 1 else 9 * 7
x_offset = 0 if run_args.pipette_channels != 96 else 9 * -11
dial_target = dial_target.move(
top_types.Point(y=y_offset, x=x_offset)
)
dial_target = dial_target.move(top_types.Point(y=y_offset, x=x_offset))

def read_dial() -> float:
time.sleep(2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def _setup(
if PIPETTE_CHANNELS < 96:
rack = ctx.load_labware(rack_name, SLOT_TIPRACK)
else:
rack = ctx.load_labware(rack_name, SLOT_TIPRACK, adapter = "opentrons_flex_96_tiprack_adapter")
rack = ctx.load_labware(
rack_name, SLOT_TIPRACK, adapter="opentrons_flex_96_tiprack_adapter"
)
pipette = ctx.load_instrument(pip_name, "left")
labware = ctx.load_labware(LABWARE, SLOT_LABWARE)
dial = ctx.load_labware("dial_indicator", SLOT_DIAL)
Expand Down Expand Up @@ -209,7 +211,6 @@ def _read_dial_indicator(
return dial_port



def _store_dial_baseline(
ctx: ProtocolContext,
pipette: InstrumentContext,
Expand Down Expand Up @@ -277,16 +278,20 @@ def _test_for_expected_liquid_state(
_store_dial_baseline(ctx, pipette, dial, google_sheet, sheet_id, row)
if pipette.channels > 1:
_store_dial_baseline(
ctx, pipette, dial, google_sheet, sheet_id, row+1, front_channel=True
ctx, pipette, dial, google_sheet, sheet_id, row + 1, front_channel=True
)
csv_header = f'trial,result,tip-z-error,{",".join([w.well_name for w in wells])}'
_write_line_to_csv(ctx, f"{csv_header}")
# Write header to google sheet.
if pipette.channels == 1:
gs_list = [["Trial"], ["Result"], ["Tip-Z-Error"]] + [[w.well_name] for w in wells]
gs_list = [["Trial"], ["Result"], ["Tip-Z-Error"]] + [
[w.well_name] for w in wells
]
else:
gs_list = [["Trial"], ["Result"], ["Tip-Z-Error 1 "], ["Tip-Z-Error 2"]] + [[w.well_name] for w in wells]

gs_list = [["Trial"], ["Result"], ["Tip-Z-Error 1 "], ["Tip-Z-Error 2"]] + [
[w.well_name] for w in wells
]

_write_line_to_google_sheet(ctx, google_sheet, gs_list, sheet_id, row + 2)
while trial_counter < trials:
for tip in tips:
Expand Down

0 comments on commit 2accc20

Please sign in to comment.