From be0ae93a57ce04675c314fb14f536a9157391ca1 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Thu, 10 Oct 2024 12:26:51 -0400 Subject: [PATCH] Delete dead `nozzle_map==None` code. `nozzle_map` cannot be `None` since https://github.com/Opentrons/opentrons/pull/14529. --- api/src/opentrons/protocol_engine/state/tips.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/api/src/opentrons/protocol_engine/state/tips.py b/api/src/opentrons/protocol_engine/state/tips.py index ea7c2bd1540..db78704312c 100644 --- a/api/src/opentrons/protocol_engine/state/tips.py +++ b/api/src/opentrons/protocol_engine/state/tips.py @@ -88,13 +88,8 @@ def handle_action(self, action: Action) -> None: pipette_id = action.private_result.pipette_id nozzle_map = action.private_result.nozzle_map pipette_info = self._state.pipette_info_by_pipette_id[pipette_id] - if nozzle_map: - pipette_info.active_channels = nozzle_map.tip_count - pipette_info.nozzle_map = nozzle_map - else: - # todo(mm, 2024-10-10): nozzle_map looks always truthy--can this - # else-block actually run? - pipette_info.active_channels = pipette_info.channels + pipette_info.active_channels = nozzle_map.tip_count + pipette_info.nozzle_map = nozzle_map elif isinstance(action, FailCommandAction): self._handle_failed_command(action)