Skip to content

Commit

Permalink
fix for is lid on
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Aug 12, 2024
1 parent e1d99dd commit 564cd9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ async def get_current_lid_status(self) -> AbsorbanceReaderLidStatus:
"""Get the Absorbance Reader's current lid status."""
await self._reader.get_lid_status()
return self._reader.lid_status

def _enter_error_state(self, error: Exception) -> None:
self._error = str(error)
if isinstance(error, AbsorbanceReaderDisconnectedError):
Expand Down
7 changes: 7 additions & 0 deletions api/src/opentrons/protocol_api/core/engine/module_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,3 +563,10 @@ def open_lid(self) -> None:
moduleId=self.module_id,
)
)

def is_lid_on(self) -> bool:
"""Returns True if the Absorbance Reader's lid is currently on the Reader slot."""
abs_state = self._engine_client.state.modules.get_absorbance_reader_substate(
self.module_id
)
return abs_state.is_lid_on

0 comments on commit 564cd9f

Please sign in to comment.