Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually manually make an int into a uint to satisfy numpy #1529

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading