Skip to content

Commit

Permalink
Pick from #172
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed May 11, 2022
1 parent 35beb3e commit f8e7796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spinn_machine/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def concentric_chips(self, radius, start):
based on the links of the chips.
Mostly copied from:
https://github.com/project-rig/blob/master/rig/geometry.py
https://github.com/project-rig/rig/blob/master/rig/geometry.py
:param int radius: The radius of rings to produce (0 = start only)
:param tuple(int,int) start: The start coordinate
Expand Down
4 changes: 2 additions & 2 deletions spinn_machine/multicast_routing_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ def _calc_spinnaker_route(self):
:rtype: int
"""
route_entry = 0
for processor_id in self.processor_ids:
for processor_id in self._processor_ids:
route_entry |= (1 << (Router.MAX_LINKS_PER_ROUTER + processor_id))
for link_id in self.link_ids:
for link_id in self._link_ids:
route_entry |= (1 << link_id)
return route_entry

Expand Down

0 comments on commit f8e7796

Please sign in to comment.