Skip to content

Commit

Permalink
move read result query
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Aug 15, 2024
1 parent a0cd0e7 commit d5c8f23
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions api/src/opentrons/protocol_api/core/engine/module_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,12 @@ def read(self) -> Optional[Dict[str, float]]:
moduleId=self.module_id, sampleWavelength=self._initialized_value
)
)
read_result = self._engine_client.state.modules.get_absorbance_reader_substate(
self.module_id
).data
if not self._engine_client.state.config.use_virtual_modules:
read_result = (
self._engine_client.state.modules.get_absorbance_reader_substate(
self.module_id
).data
)
if read_result is not None:
return read_result
raise CannotPerformModuleAction(
Expand Down

0 comments on commit d5c8f23

Please sign in to comment.