{"action":"created","issue":{"url":"https://api.github.com/repos/mariomulansky/PySpike/issues/11","labels_url":"https://api.github.com/repos/mariomulansky/PySpike/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/mariomulansky/PySpike/issues/11/comments","events_url":"https://api.github.com/repos/mariomulansky/PySpike/issues/11/events","html_url":"https://github.com/mariomulansky/PySpike/issues/11","id":100163747,"number":11,"title":"Multichannel ISI returns error","user":{"login":"ImmanuelSamuel","id":7865018,"avatar_url":"https://avatars.githubusercontent.com/u/7865018?v=3","gravatar_id":"","url":"https://api.github.com/users/ImmanuelSamuel","html_url":"https://github.com/ImmanuelSamuel","followers_url":"https://api.github.com/users/ImmanuelSamuel/followers","following_url":"https://api.github.com/users/ImmanuelSamuel/following{/other_user}","gists_url":"https://api.github.com/users/ImmanuelSamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmanuelSamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmanuelSamuel/subscriptions","organizations_url":"https://api.github.com/users/ImmanuelSamuel/orgs","repos_url":"https://api.github.com/users/ImmanuelSamuel/repos","events_url":"https://api.github.com/users/ImmanuelSamuel/events{/privacy}","received_events_url":"https://api.github.com/users/ImmanuelSamuel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T20:39:49Z","updated_at":"2015-08-10T20:59:25Z","closed_at":null,"body":"Running the following:\r\navrg_spike_profile = spk.spike_profile_multi(spike_trains)\r\n\r\nGives the error:\r\n```\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-18-46e00adc0093> in <module>()\r\n----> 1 avrg_isi_profile = spk.isi_profile_multi(spike_trains,indices=(1,2,3))\r\n\r\nN:\\Research\\programs\\python\\WinPython-64bit-3.4.3.3\\python-3.4.3.amd64\\Lib\\site-packages\\pyspike\\isi_distance.py in isi_profile_multi(spike_trains, indices)\r\n    106     \"\"\"\r\n    107     average_dist, M = _generic_profile_multi(spike_trains, isi_profile,\r\n--> 108                                              indices)\r\n    109     average_dist.mul_scalar(1.0/M)  # normalize\r\n    110     return average_dist\r\n\r\nN:\\Research\\programs\\python\\WinPython-64bit-3.4.3.3\\python-3.4.3.amd64\\lib\\site-packages\\pyspike\\generic.py in _generic_profile_multi(spike_trains, pair_distance_func, indices)\r\n     64     if L > 1:\r\n     65         # recursive iteration through the list of pairs to get average profile\r\n---> 66         avrg_dist = divide_and_conquer(pairs[:len(pairs)/2],\r\n     67                                        pairs[len(pairs)/2:])\r\n     68     else:\r\n\r\nTypeError: slice indices must be integers or None or have an __index__ method\r\n```"},"comment":{"url":"https://api.github.com/repos/mariomulansky/PySpike/issues/comments/129604768","html_url":"https://github.com/mariomulansky/PySpike/issues/11#issuecomment-129604768","issue_url":"https://api.github.com/repos/mariomulansky/PySpike/issues/11","id":129604768,"user":{"login":"ImmanuelSamuel","id":7865018,"avatar_url":"https://avatars.githubusercontent.com/u/7865018?v=3","gravatar_id":"","url":"https://api.github.com/users/ImmanuelSamuel","html_url":"https://github.com/ImmanuelSamuel","followers_url":"https://api.github.com/users/ImmanuelSamuel/followers","following_url":"https://api.github.com/users/ImmanuelSamuel/following{/other_user}","gists_url":"https://api.github.com/users/ImmanuelSamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmanuelSamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmanuelSamuel/subscriptions","organizations_url":"https://api.github.com/users/ImmanuelSamuel/orgs","repos_url":"https://api.github.com/users/ImmanuelSamuel/repos","events_url":"https://api.github.com/users/ImmanuelSamuel/events{/privacy}","received_events_url":"https://api.github.com/users/ImmanuelSamuel/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T20:59:25Z","updated_at":"2015-08-10T20:59:25Z","body":"Figured out the problem. Dividing the indices leads to floats which is cannot be used to slice the matrix. So I changed the type. Will send a PR soon."}}