Skip to content

Commit

Permalink
fix(api): raise error during analysis plate reader read without lid c…
Browse files Browse the repository at this point in the history
…losed (#16941)

Covers RABR-674
Raises  an error during analysis when the plate reader lid is not closed and a read is attempted.
  • Loading branch information
CaseyBatten authored Nov 21, 2024
1 parent 4f061f7 commit 8b2196a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"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
if (
Expand Down

0 comments on commit 8b2196a

Please sign in to comment.