Skip to content

Commit

Permalink
mock_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 9, 2023
1 parent c26a423 commit 021a35f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from spinn_front_end_common.interface.config_setup import unittest_setup
from spinn_front_end_common.interface.interface_functions import (
application_finisher)
from spinnman.model.cpu_infos import CPUInfos
from spinnman.model import CPUInfo, CPUInfos
from spinnman.transceiver import Transceiver


Expand Down Expand Up @@ -55,9 +55,11 @@ def get_cpu_infos(
if (x, y, p) in core_states:
if hasattr(states, "__iter__"):
if core_states[x, y, p] in states:
cores_in_state.add_processor(x, y, p, None)
cores_in_state.add_info(CPUInfo.mock_info(
x, y, p, p, core_states[x, y, p]))
elif core_states[x, y, p] == states:
cores_in_state.add_processor(x, y, p, None)
cores_in_state.add_info(CPUInfo.mock_info(
x, y, p, p, core_states[x, y, p]))

self._current_state += 1
return cores_in_state
Expand Down

0 comments on commit 021a35f

Please sign in to comment.