Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Dec 23, 2024
1 parent 7db236e commit 091c9b1
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions api/src/opentrons/protocol_engine/state/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,30 +303,6 @@ def _handle_state_update(self, state_update: update_types.StateUpdate) -> None:
self._handle_absorbance_reader_commands(
state_update, state_update.module_state_update.module_id
)
# module_id = state_update.absorbance_reader_lid.module_id
# is_lid_on = state_update.absorbance_reader_lid.is_lid_on
#
# # Get current values:
# absorbance_reader_substate = self._state.substate_by_module_id[module_id]
# assert isinstance(
# absorbance_reader_substate, AbsorbanceReaderSubState
# ), f"{module_id} is not an absorbance plate reader."
# configured = absorbance_reader_substate.configured
# measure_mode = absorbance_reader_substate.measure_mode
# configured_wavelengths = absorbance_reader_substate.configured_wavelengths
# reference_wavelength = absorbance_reader_substate.reference_wavelength
# data = absorbance_reader_substate.data
#
# self._state.substate_by_module_id[module_id] = AbsorbanceReaderSubState(
# module_id=AbsorbanceReaderId(module_id),
# configured=configured,
# measured=True,
# is_lid_on=is_lid_on,
# measure_mode=measure_mode,
# configured_wavelengths=configured_wavelengths,
# reference_wavelength=reference_wavelength,
# data=data,
# )

def _add_module_substate(
self,
Expand Down Expand Up @@ -630,18 +606,6 @@ def _handle_absorbance_reader_commands(
!= update_types.NO_CHANGE
):
data = state_update.module_state_update.absorbance_reader_data.read_result
#
# self._state.substate_by_module_id[module_id] = AbsorbanceReaderSubState(
# module_id=AbsorbanceReaderId(module_id),
# configured=configured,
# measured=True,
# is_lid_on=is_lid_on,
# measure_mode=measure_mode,
# configured_wavelengths=configured_wavelengths,
# reference_wavelength=reference_wavelength,
# data=state_update.absorbance_reader_data.read_data,
# )

self._state.substate_by_module_id[module_id] = AbsorbanceReaderSubState(
module_id=AbsorbanceReaderId(module_id),
configured=configured,
Expand Down

0 comments on commit 091c9b1

Please sign in to comment.