Skip to content

Commit

Permalink
merged in master
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 15, 2022
2 parents f1b4f69 + 373ab5e commit b6b0429
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pacman/operations/placer_algorithms/application_placer.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,7 @@ def __usable_from_chip(self, chip):
chip_coords = (link.destination_x, link.destination_y)
target_chip = self.__machine.get_chip_at(*chip_coords)
if target_chip not in self.__used_chips:
# Don't place on virtual chips
if not target_chip.virtual:
chips.add(target_chip)
chips.add(target_chip)
return chips

def save_chips(self, chips):
Expand Down Expand Up @@ -569,8 +567,8 @@ def _chip_order(machine):
:param machine:
:rtype: Chip
"""
for x in range(machine.max_chip_x + 1):
for y in range(machine.max_chip_y + 1):
for x in range(machine.width):
for y in range(machine.height):
chip = machine.get_chip_at(x, y)
if chip:
yield chip

0 comments on commit b6b0429

Please sign in to comment.