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

numpy warnngs #1426

Open
Christian-B opened this issue Dec 20, 2023 · 0 comments
Open

numpy warnngs #1426

Christian-B opened this issue Dec 20, 2023 · 0 comments
Assignees

Comments

@Christian-B
Copy link
Member

/home/runner/work/sPyNNaker/sPyNNaker/spynnaker/pyNN/models/neural_projections/connectors/fixed_number_post_connector.py:127: DeprecationWarning: Converting np.integer or np.signedinteger to a dtype is deprecated. The current result is np.dtype(np.int_) which is not strictly correct. Note that the result depends on the system. To ensure stable results use may want to use np.int64 or np.int32.
[numpy.empty([0], dtype=integer)] * synapse_info.n_pre_neurons

/home/runner/work/sPyNNaker/sPyNNaker/spynnaker/pyNN/models/common/param_generator_data.py:116: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of -1638400 to uint32 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)
will give the desired result (the cast overflows).
return numpy.array(

@Christian-B Christian-B self-assigned this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant