From 5d747f30ea1f9b6e2e085d55d15cbd7671c5a56a Mon Sep 17 00:00:00 2001 From: CaseyBatten Date: Thu, 21 Nov 2024 15:05:54 -0500 Subject: [PATCH 1/2] addition of error during analysis when attempting to read without closing lid --- .../protocol_engine/commands/absorbance_reader/read.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py b/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py index 8743fd1383b..1ca848858b6 100644 --- a/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py +++ b/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py @@ -80,6 +80,10 @@ async def execute( # noqa: C901 raise CannotPerformModuleAction( "Cannot perform Read action on Absorbance Reader without calling `.initialize(...)` first." ) + if abs_reader_substate.is_lid_on is False: + raise CannotPerformModuleAction( + "Cannot perform Read action on Absorbance Reader with the lid open. Try calling `.close_lid()` first." + ) # TODO: we need to return a file ID and increase the file count even when a moduel is not attached if ( From ef9358fea79310fa0f86e0604ee22bb726f5356c Mon Sep 17 00:00:00 2001 From: CaseyBatten Date: Thu, 21 Nov 2024 16:15:08 -0500 Subject: [PATCH 2/2] Update api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py Co-authored-by: Ed Cormany --- .../protocol_engine/commands/absorbance_reader/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py b/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py index 1ca848858b6..8e8926089f1 100644 --- a/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py +++ b/api/src/opentrons/protocol_engine/commands/absorbance_reader/read.py @@ -82,7 +82,7 @@ async def execute( # noqa: C901 ) if abs_reader_substate.is_lid_on is False: raise CannotPerformModuleAction( - "Cannot perform Read action on Absorbance Reader with the lid open. Try calling `.close_lid()` first." + "Absorbance Plate Reader can't read a plate with the lid open. Call `close_lid()` first." ) # TODO: we need to return a file ID and increase the file count even when a moduel is not attached