From f776469b10a99235635a951c89a0a3db14737e5d Mon Sep 17 00:00:00 2001 From: CaseyBatten Date: Tue, 13 Aug 2024 16:25:44 -0400 Subject: [PATCH] doc and error text updates --- api/src/opentrons/protocol_api/module_contexts.py | 2 +- api/src/opentrons/protocol_api/protocol_context.py | 2 +- .../protocol_engine/commands/absorbance_reader/close_lid.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/opentrons/protocol_api/module_contexts.py b/api/src/opentrons/protocol_api/module_contexts.py index 71ef46c1649..cf9d30b698f 100644 --- a/api/src/opentrons/protocol_api/module_contexts.py +++ b/api/src/opentrons/protocol_api/module_contexts.py @@ -999,7 +999,7 @@ def open_lid(self) -> None: @requires_version(2, 21) def is_lid_on(self) -> bool: - """Return True if the Absorbance Reader's lid is currently closed.""" + """Return ``True`` if the Absorbance Reader's lid is currently closed.""" return self._core.is_lid_on() @requires_version(2, 21) diff --git a/api/src/opentrons/protocol_api/protocol_context.py b/api/src/opentrons/protocol_api/protocol_context.py index c559f54fc0d..c16db413f34 100644 --- a/api/src/opentrons/protocol_api/protocol_context.py +++ b/api/src/opentrons/protocol_api/protocol_context.py @@ -712,7 +712,7 @@ def move_labware( if isinstance(new_location, AbsorbanceReaderContext): if new_location.is_lid_on(): raise CommandPreconditionViolated( - f"Cannot move {labware.name} onto the Absorbance Reader Module when Lid is Closed." + f"Cannot move {labware.name} onto the Absorbance Reader Module when its lid is closed." ) location: Union[ diff --git a/api/src/opentrons/protocol_engine/commands/absorbance_reader/close_lid.py b/api/src/opentrons/protocol_engine/commands/absorbance_reader/close_lid.py index 207707778b6..6252be497e9 100644 --- a/api/src/opentrons/protocol_engine/commands/absorbance_reader/close_lid.py +++ b/api/src/opentrons/protocol_engine/commands/absorbance_reader/close_lid.py @@ -133,7 +133,7 @@ async def execute( result = await abs_reader.get_current_lid_status() if result is not AbsorbanceReaderLidStatus.ON: raise CannotPerformModuleAction( - "The Opentrons Plate Reader lid mechanicaly position did not match expected Closed state." + "The mechanical position of the Absorbance Plate Reader's lid did not match the expected 'closed' state." ) else: raise CannotPerformModuleAction(