{"action":"closed","issue":{"url":"https://api.github.com/repos/brian-team/brian2/issues/647","repository_url":"https://api.github.com/repos/brian-team/brian2","labels_url":"https://api.github.com/repos/brian-team/brian2/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/brian-team/brian2/issues/647/comments","events_url":"https://api.github.com/repos/brian-team/brian2/issues/647/events","html_url":"https://github.com/brian-team/brian2/issues/647","id":130781339,"number":647,"title":"SpikeMonitor should check that the source is actually a `SpikeSource`","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/easy","name":"easy","color":"009800"},{"url":"https://api.github.com/repos/brian-team/brian2/labels/high%20priority","name":"high priority","color":"eb6420"},{"url":"https://api.github.com/repos/brian-team/brian2/labels/in%20progress","name":"in progress","color":"ededed"}],"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":null,"comments":1,"created_at":"2016-02-02T18:59:10Z","updated_at":"2016-04-20T12:44:37Z","closed_at":"2016-04-20T12:44:37Z","body":"In particular, you can currently create a `SpikeMonitor` of a `Synapses` object, which will later fail with a hard-to-interpret error message. I think this only works at all \"by accident\", because in the `Synapses` object you can access the post-synaptic `spikespace` by its name (which you shouldn't). This combined with luck in the indexing (e.g. one-to-one connections) might actually lead to this not raising any error, but it is certainly not doing what the user expects it to do."}}