Skip to content

Commit d7eae8c

Browse files
committed
int i
1 parent b11fcb5 commit d7eae8c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

spynnaker/pyNN/models/spike_source/spike_source_poisson_machine_vertex.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ def get_n_rates(vertex_slice: Slice, rate_data: Sequence[Sized]) -> int:
8888
"""
8989
How many rates there are to be stored in total.
9090
"""
91-
i: numpy.integer
92-
for i in vertex_slice.get_raster_ids():
93-
print(i)
94-
return sum(len(rate_data[i]) for i in vertex_slice.get_raster_ids())
91+
return sum(len(rate_data[int(i)]) for i in vertex_slice.get_raster_ids())
9592

9693

9794
def get_params_bytes(n_atoms: int) -> int:

0 commit comments

Comments
 (0)