Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 23, 2025
2 parents c9920b9 + d69fb90 commit 394cf51
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Sequence, Optional, TYPE_CHECKING

import numpy
from numpy import uint32
from numpy import int32, uint32
from numpy.typing import NDArray

from spinn_utilities.overrides import overrides
Expand Down Expand Up @@ -200,11 +200,9 @@ def gen_connector_params(
n_values = self.__n_neurons_per_group
if n_values is None:
n_values = synapse_info.n_pre_neurons
assert self.__offset >= 0
assert self.__wrap >= 0
assert n_values >= 0
return numpy.array([self.__offset, int(self.__wrap), n_values],
dtype=uint32)
return numpy.array(
[int32(self.__offset).view(uint32), int(self.__wrap), n_values],
dtype=uint32)

@property
@overrides(
Expand Down

0 comments on commit 394cf51

Please sign in to comment.