{"action":"closed","issue":{"url":"https://api.github.com/repos/brian-team/brian2/issues/461","labels_url":"https://api.github.com/repos/brian-team/brian2/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/brian-team/brian2/issues/461/comments","events_url":"https://api.github.com/repos/brian-team/brian2/issues/461/events","html_url":"https://github.com/brian-team/brian2/issues/461","id":73254204,"number":461,"title":"Spikes from subgroups are not always propagated with the Python spike queue","user":{"login":"mstimberg","id":1381982,"avatar_url":"https://avatars.githubusercontent.com/u/1381982?v=3","gravatar_id":"","url":"https://api.github.com/users/mstimberg","html_url":"https://github.com/mstimberg","followers_url":"https://api.github.com/users/mstimberg/followers","following_url":"https://api.github.com/users/mstimberg/following{/other_user}","gists_url":"https://api.github.com/users/mstimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstimberg/subscriptions","organizations_url":"https://api.github.com/users/mstimberg/orgs","repos_url":"https://api.github.com/users/mstimberg/repos","events_url":"https://api.github.com/users/mstimberg/events{/privacy}","received_events_url":"https://api.github.com/users/mstimberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brian-team/brian2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/brian-team/brian2/labels/component:%20synapses","name":"component: synapses","color":"0b02e1"},{"url":"https://api.github.com/repos/brian-team/brian2/labels/high%20priority","name":"high priority","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"mstimberg","id":1381982,"avatar_url":"https://avatars.githubusercontent.com/u/1381982?v=3","gravatar_id":"","url":"https://api.github.com/users/mstimberg","html_url":"https://github.com/mstimberg","followers_url":"https://api.github.com/users/mstimberg/followers","following_url":"https://api.github.com/users/mstimberg/following{/other_user}","gists_url":"https://api.github.com/users/mstimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstimberg/subscriptions","organizations_url":"https://api.github.com/users/mstimberg/orgs","repos_url":"https://api.github.com/users/mstimberg/repos","events_url":"https://api.github.com/users/mstimberg/events{/privacy}","received_events_url":"https://api.github.com/users/mstimberg/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/brian-team/brian2/milestones/9","html_url":"https://github.com/brian-team/brian2/milestones/2.0beta4","labels_url":"https://api.github.com/repos/brian-team/brian2/milestones/9/labels","id":1090512,"number":9,"title":"2.0beta4","description":"","creator":{"login":"mstimberg","id":1381982,"avatar_url":"https://avatars.githubusercontent.com/u/1381982?v=3","gravatar_id":"","url":"https://api.github.com/users/mstimberg","html_url":"https://github.com/mstimberg","followers_url":"https://api.github.com/users/mstimberg/followers","following_url":"https://api.github.com/users/mstimberg/following{/other_user}","gists_url":"https://api.github.com/users/mstimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstimberg/subscriptions","organizations_url":"https://api.github.com/users/mstimberg/orgs","repos_url":"https://api.github.com/users/mstimberg/repos","events_url":"https://api.github.com/users/mstimberg/events{/privacy}","received_events_url":"https://api.github.com/users/mstimberg/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":2,"state":"open","created_at":"2015-04-30T07:43:59Z","updated_at":"2015-05-05T09:44:35Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-05-05T09:06:20Z","updated_at":"2015-05-05T09:44:35Z","closed_at":"2015-05-05T09:44:35Z","body":"There's a nasty bug in the Python spike queue (I'll go ahead and directly fix it in master): Spikes from a subgroup are not propagated under certain circumstances (the total number of spikes in the group needs to be higher than the number of neurons in the subgroup, the last spike in the queue has to be from the last neuron in the subgroup). For example, the following will not transmit anything (with the Python spike queue):\r\n```Python\r\nsource = NeuronGroup(100, '', threshold='True')\r\nsub_source = source[99:]\r\ntarget = NeuronGroup(1, 'v:1')\r\nsyn = Synapses(sub_source, target, pre='v+=1', connect=True)\r\nrun(defaultclock.dt)\r\n```"}}