Opentrons / opentrons

Software for writing protocols and running them on the Opentrons Flex and Opentrons OT-2
https://opentrons.com
Apache License 2.0
426 stars 179 forks source link

fix(api): raise error during analysis plate reader read without lid closed #16941

Closed CaseyBatten closed 5 days ago

CaseyBatten commented 5 days ago

Overview

Covers RABR-674

Ensures that an error is raised during analysis when the lid is not closed and a read is attempted, and that the error goes away if the lid is closed.

Test Plan and Hands on Testing

requirements = {"robotType": "Flex", "apiLevel": "2.21"}

def run(ctx: ProtocolContext) -> None: """Protocol.""" plate_reader = ctx.load_module( "absorbanceReaderV1", "A3" ) sample_plate = ctx.load_labware( "armadillo_96_wellplate_200ul_pcr_full_skirt", "D1", "Sample Plate 1" ) plate_reader.close_lid() plate_reader.initialize("single", [450]) plate_reader.open_lid() ctx.move_labware(sample_plate, plate_reader, use_gripper=True) result = plate_reader.read()



## Changelog
Added new error to the engine command executor for the Read function of the plate reader.

## Review requests

## Risk assessment
Low