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

Stochastic synapse creation fails on numpy if you use "int" in the condition #835

mstimberg opened this Issue Apr 25, 2017 · 0 comments


None yet
1 participant

mstimberg commented Apr 25, 2017

Using int in the connection condition for synapses with the numpy target (when the "jump" algorithm is triggered), leads to an error. This is because the use of int overwrites the meaning of int which is used as a dtype in the code. Here's an example for triggering it: = 'numpy'
big_group = NeuronGroup(2000, '')
syn = Synapses(big_group, big_group)
syn.connect('i < int(N_post*0.5)', p=0.01)

The fix is trivial (replace int by _numpy.int32 in the template), I'll open the PR right away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment