Skip to content

Commit

Permalink
Actually manually make an int into a uint to satisfy numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Jan 23, 2025
1 parent 7826574 commit f0a3b2e
Showing 1 changed file with 4 additions and 3 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,8 +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
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 f0a3b2e

Please sign in to comment.