Skip to content

Commit 8b2196a

Browse files
authored
fix(api): raise error during analysis plate reader read without lid closed (#16941)
Covers RABR-674 Raises an error during analysis when the plate reader lid is not closed and a read is attempted.
1 parent 4f061f7 commit 8b2196a

File tree

1 file changed

+4
-0
lines changed
  • api/src/opentrons/protocol_engine/commands/absorbance_reader

1 file changed

+4
-0
lines changed

api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ async def execute( # noqa: C901
8080
raise CannotPerformModuleAction(
8181
"Cannot perform Read action on Absorbance Reader without calling `.initialize(...)` first."
8282
)
83+
if abs_reader_substate.is_lid_on is False:
84+
raise CannotPerformModuleAction(
85+
"Absorbance Plate Reader can't read a plate with the lid open. Call `close_lid()` first."
86+
)
8387

8488
# TODO: we need to return a file ID and increase the file count even when a moduel is not attached
8589
if (

0 commit comments

Comments
 (0)