Skip to content

Commit

Permalink
construct SN for tag right
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Nov 22, 2024
1 parent 3839366 commit f6b5d93
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hardware-testing/hardware_testing/opentrons_api/helpers_ot3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,18 @@ def get_pipette_serial_ot3(pipette: Union[PipetteOT2, PipetteOT3]) -> str:
"""Get pipette serial number."""
model = pipette.model
volume = model.split("_")[0].replace("p", "")
volume = "1K" if volume == "1000" else volume
channels = "S" if "single" in model else "M"

if volume == "1000":
volume = "1K"
elif volume == "200":
volume = "2H"

if "single" in model:
channels = "S"
elif "96" in model:
channels = "H"
else:
channels = "M"
version = model.split("v")[-1].strip().replace(".", "")
assert pipette.pipette_id, f"no pipette_id found for pipette: {pipette}"
if "P" in pipette.pipette_id:
Expand Down

0 comments on commit f6b5d93

Please sign in to comment.