Skip to content

Commit

Permalink
MulticastRoutingEntry wraps a RoutingEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Mar 28, 2024
1 parent 99ff07d commit 65d18a2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions spinnman/processes/get_routes_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from functools import partial
from typing import List, Optional

from spinn_machine import MulticastRoutingEntry, Router
from spinn_machine import MulticastRoutingEntry, Router, RoutingEntry
from spinnman.messages.scp.impl.read_memory import ReadMemory, Response
from spinnman.constants import UDP_MESSAGE_MAX_SIZE

Expand Down Expand Up @@ -64,13 +64,8 @@ def _add_routing_entry(
if self._app_id is not None and self._app_id != app_id:
return

# Convert bit-set into list of (set) IDs
processor_ids, link_ids = \
Router.convert_spinnaker_route_to_routing_ids(route)

self._entries[route_no + offset] = MulticastRoutingEntry(
key, mask, processor_ids=processor_ids, link_ids=link_ids,
defaultable=False)
key, mask, RoutingEntry(spinnaker_route=route))

def __handle_response(self, offset: int, response: Response):
for route_no in range(_ENTRIES_PER_READ):
Expand Down

0 comments on commit 65d18a2

Please sign in to comment.