Skip to content

Commit

Permalink
see #1436
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Feb 26, 2024
1 parent d1b2fca commit c6324cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def __decode_weights(
elif isinstance(self.__weights, RandomDistribution):
n_weights = self.__get_n_weights(
pre_shape, post_vertex_slice.n_atoms)
# pylint: disable=no-member
# see https://github.com/SpiNNakerManchester/sPyNNaker/issues/1436
return numpy.array(self.__weights.next(n_weights), dtype=float64)
else:
raise SynapticConfigurationException(
Expand Down

0 comments on commit c6324cd

Please sign in to comment.