Skip to content

Commit 54304e4

Browse files
committed
make it an int
1 parent db81b4b commit 54304e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spynnaker/pyNN/models/neural_projections/connectors/fixed_number_post_connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ def _n_post_neurons_in_slice(
226226
# this post-vertex slice
227227
this_post_neuron_array = post_neurons[n]
228228

229-
return numpy.count_nonzero(numpy.logical_and(
229+
return int(numpy.count_nonzero(numpy.logical_and(
230230
post_vertex_slice.lo_atom <= this_post_neuron_array,
231-
this_post_neuron_array <= post_vertex_slice.hi_atom))
231+
this_post_neuron_array <= post_vertex_slice.hi_atom)))
232232

233233
@overrides(AbstractConnector.get_n_connections_from_pre_vertex_maximum)
234234
def get_n_connections_from_pre_vertex_maximum(

0 commit comments

Comments
 (0)