Skip to content

Commit

Permalink
fix(hardware): Ignore the Hepa/UV when resolving for attached instrum…
Browse files Browse the repository at this point in the history
…ents. (#16175)
  • Loading branch information
vegano1 authored Sep 3, 2024
1 parent 2461723 commit 3cba451
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ async def _await_responses(
node = await _handle_hepa_uv_info(
response_queue, response, arbitration_id
)
seen.add(node)
break
elif isinstance(response, message_definitions.ErrorMessage):
log.error(f"Received error message {str(response)}")

Expand Down Expand Up @@ -215,7 +217,6 @@ async def _resolve_with_stimulus_retries(
should_respond
)
expected_gripper = {NodeId.gripper}.intersection(should_respond)
expected_hepa_uv = {NodeId.hepa_uv}.intersection(should_respond)

while True:
pipettes, gripper, hepa_uv = await _do_tool_resolve(
Expand All @@ -224,12 +225,10 @@ async def _resolve_with_stimulus_retries(
output_queue.put_nowait((pipettes, gripper, hepa_uv))
seen_pipettes = set([k.application_for() for k in pipettes.keys()])
seen_gripper = set([k.application_for() for k in gripper.keys()])
seen_hepa_uv = set([k.application_for() for k in hepa_uv.keys()])
if all(
[
seen_pipettes == expected_pipettes,
seen_gripper == expected_gripper,
seen_hepa_uv == expected_hepa_uv,
]
):
return
Expand Down

0 comments on commit 3cba451

Please sign in to comment.