Skip to content

Commit

Permalink
update max height to 16mm and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Nov 1, 2024
1 parent e25402a commit 5b86acb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion api/src/opentrons/protocol_api/core/engine/module_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,15 @@ def initialize(

wavelength_len = len(wavelengths)
if mode == "single" and wavelength_len != 1:
raise ValueError(f"Single mode can only be initialized with 1 wavelength.")
raise ValueError(
f"Single mode can only be initialized with 1 wavelength"
f" {wavelength_len} wavelengths provided instead."
)

if mode == "multi" and (wavelength_len < 1 or wavelength_len > 6):
raise ValueError(
f"Multi mode can only be initialized with 1 - 6 wavelengths."
f" {wavelength_len} wavelengths provided instead."
)

if reference_wavelength is not None and (
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_engine/state/labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@


# The max height of the labware that can fit in a plate reader
_PLATE_READER_MAX_LABWARE_Z_MM = 15
_PLATE_READER_MAX_LABWARE_Z_MM = 16


class LabwareLoadParams(NamedTuple):
Expand Down

0 comments on commit 5b86acb

Please sign in to comment.