Skip to content

Commit

Permalink
Update api/src/opentrons/protocol_engine/commands/absorbance_reader/i…
Browse files Browse the repository at this point in the history
…nitialize.py


typos

Co-authored-by: Ed Cormany <[email protected]>
  • Loading branch information
vegano1 and ecormany committed Sep 19, 2024
1 parent 4e91ab8 commit 8417fe3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ async def execute(
sample_wavelengths = set(params.sampleWavelengths)
sample_wavelengths_len = len(params.sampleWavelengths)
reference_wavelength = params.referenceWavelength
supported_wavelenths = set(abs_reader.supported_wavelengths)
unsuported_wavelengths = sample_wavelengths.difference(supported_wavelenths)
if unsuported_wavelengths:
raise ValueError(f"Unsuported wavelengths: {unsuported_wavelengths}")
supported_wavelengths = set(abs_reader.supported_wavelengths)
unsupported_wavelengths = sample_wavelengths.difference(supported_wavelengths)
if unsupported_wavelengths:
raise ValueError(f"Unsupported wavelengths: {unsupported_wavelengths}")

if params.measureMode == "single":
if sample_wavelengths_len != 1:
Expand All @@ -79,10 +79,10 @@ async def execute(
)
if (
reference_wavelength is not None
and reference_wavelength not in supported_wavelenths
and reference_wavelength not in supported_wavelengths
):
raise ValueError(
f"Reference wavelength {reference_wavelength} not supported {supported_wavelenths}"
f"Reference wavelength {reference_wavelength} not supported {supported_wavelengths}"
)

if params.measureMode == "multi":
Expand Down

0 comments on commit 8417fe3

Please sign in to comment.