Skip to content

Commit

Permalink
account for COLUMN configuration on 8ch
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Aug 14, 2024
1 parent 165a8c6 commit e92429d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,11 @@ def configure_nozzle_layout( # noqa: C901
raise ValueError(
"Row configuration is only supported on 96-Channel pipettes."
)
if style == NozzleLayout.COLUMN:
if self.channels != 96:
raise ValueError(
"Column configuration is only supported on 96-Channel pipettes."
)
if style == NozzleLayout.PARTIAL_COLUMN:
if self.channels == 1 or self.channels == 96:
raise ValueError(
Expand All @@ -2111,13 +2116,13 @@ def configure_nozzle_layout( # noqa: C901
if start == "H1" or start == "H12":
if "A" in end:
raise ValueError(
f"A partial column configuration with 'start'={start} cannot have its 'end' parameter be in row A."
f"A partial column configuration with 'start'={start} cannot have its 'end' parameter be in row A. Use `ALL` configuration to utilize all nozzles."
)
back_left_resolved = end
elif start == "A1" or start == "A12":
if "H" in end:
raise ValueError(
f"A partial column configuration with 'start'={start} cannot have its 'end' parameter be in row H."
f"A partial column configuration with 'start'={start} cannot have its 'end' parameter be in row H. Use `ALL` configuration to utilize all nozzles."
)
front_right_resolved = end

Expand Down

0 comments on commit e92429d

Please sign in to comment.