Skip to content

Commit 93f7fe9

Browse files
committed
int i
1 parent 317c670 commit 93f7fe9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

spynnaker/pyNN/models/common/neuron_recorder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,8 @@ def __add_indices(
10981098
local_indexes: List[int] = list()
10991099
# Add indices based on the raster ids
11001100
index = 0
1101-
for index in vertex_slice.get_raster_ids():
1101+
for index_n in vertex_slice.get_raster_ids():
1102+
index = int(index_n)
11021103
if index in indexes:
11031104
# Recording so write the local index to record to
11041105
local_indexes.append(local_index)

spynnaker/pyNN/utilities/neo_buffer_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ def get_spike_counts(
11131113
n_colour_bits, SPIKES)[0]
11141114
counts = numpy.bincount(spikes[:, 0].astype(dtype=numpy.int32),
11151115
minlength=pop_size)
1116-
return {i: counts[i] for i in view_indexes}
1116+
return {int(i): counts[int(i)] for i in view_indexes}
11171117

11181118
def __add_data(
11191119
self, pop_label: str, variable: str,

0 commit comments

Comments
 (0)