Skip to content

Commit

Permalink
_execute_clear_router_diagnostic_counters but not if virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 11, 2024
1 parent 81f4f24 commit 139d697
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions spinn_front_end_common/interface/abstract_spinnaker_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,18 @@ def _do_provenance_reports(self) -> None:
Runs any reports based on provenance.
"""

def _execute_clear_router_diagnostic_counters(self) -> None:
"""
Runs, times and logs the clear_router_diagnostic_counters if required.
"""
with FecTimer("Clear Router Diagnostic Counters",
TimerWork.CONTROL) as timer:
if timer.skip_if_virtual_board():
return
transceiver = FecDataView().get_transceiver()
for chip in FecDataView.get_machine().chips:
transceiver.clear_router_diagnostic_counters(chip.x, chip.y)

def _execute_clear_io_buf(self) -> None:
"""
Runs, times and logs the ChipIOBufClearer if required.
Expand Down Expand Up @@ -2126,9 +2138,7 @@ def _do_extract_from_machine(self) -> None:
:type run_time: int or None
"""
self._execute_router_provenance_gatherer("Run", TimerWork.EXTRACTING)
for chip in FecDataView.get_machine().chips:
FecDataView().get_transceiver().clear_router_diagnostic_counters(
chip.x, chip.y)
self._execute_clear_router_diagnostic_counters()
self._execute_extract_iobuff()
self._execute_buffer_extractor()
self._execute_clear_io_buf()
Expand Down

0 comments on commit 139d697

Please sign in to comment.