Skip to content

Commit

Permalink
remove chip.get_first_none_monitor_processor(
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Mar 12, 2024
1 parent a1beaa9 commit 72490c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
9 changes: 0 additions & 9 deletions spinn_machine/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,6 @@ def tag_ids(self) -> Iterable[int]:
"""
return self._tag_ids

def get_first_none_monitor_processor_id(self) -> int:
"""
Get the first processor in the list which is not a monitor core.
:rtype: int
;raises IndexError: If there is no user processors
"""
return self._placable_processors[0]

@property
def parent_link(self) -> Optional[int]:
"""
Expand Down
11 changes: 0 additions & 11 deletions unittests/test_chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ def test_create_chip(self):
self.assertEqual(new_chip.tag_ids, OrderedSet([1, 2, 3, 4, 5, 6, 7]))
self.assertTrue(new_chip.is_processor_with_id(3))

def test_get_first_none_monitor_processor(self):
""" test the get_first_none_monitor_processor
NOTE: Not sure if method being tested is required.
"""
new_chip = self._create_chip(self._x, self._y, self.n_processors,
self._router, self._sdram, self._ip)
non_monitor = new_chip.get_first_none_monitor_processor_id()
self.assertEqual(non_monitor,
MachineDataView.get_machine_version().n_scamp_cores)

def test_0_down(self):
# Chip where 0 the monitor is down
with self.assertRaises(NotImplementedError):
Expand Down

0 comments on commit 72490c7

Please sign in to comment.