Skip to content

Commit

Permalink
ignore chips by id address
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 30, 2019
1 parent 1960670 commit 5331317
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions spinn_machine/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from collections import OrderedDict
import logging
from six import iteritems, itervalues
from .processor import Processor
from spinn_utilities.log import FormatAdapter
from spinn_utilities.ordered_set import OrderedSet
from .processor import Processor

logger = FormatAdapter(logging.getLogger(__name__))

standard_processors = {}

Expand Down Expand Up @@ -112,7 +116,10 @@ def __generate_processors(self, n_processors, down_cores):
"Declaring core 0 as down is not supported")
processors[0] = Processor.factory(0, True)
for i in range(1, n_processors):
if i not in down_cores:
if i in down_cores:
logger.warning("Not using Core {}:{}:{}",
self._x, self._y, i)
else:
processors[i] = Processor.factory(i)
self._n_user_processors = n_processors - 1 - len(down_cores)
return processors
Expand Down

0 comments on commit 5331317

Please sign in to comment.