summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Mulansky <mario.mulansky@gmx.net>2016-03-29 14:46:49 +0200
committerMario Mulansky <mario.mulansky@gmx.net>2016-03-29 14:46:49 +0200
commit1db8afcf2265bf1d03eff89cd61db9fe9ff72064 (patch)
tree54469932db60e457df539b8fa4bf4c16044c32c7
parent177c97bd11c4b8dca87ca70e8a44857e14b6d87c (diff)
another python3 fix
-rw-r--r--pyspike/cython/python_backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyspike/cython/python_backend.py b/pyspike/cython/python_backend.py
index a4a0c9e..e75f181 100644
--- a/pyspike/cython/python_backend.py
+++ b/pyspike/cython/python_backend.py
@@ -443,7 +443,7 @@ def coincidence_single_python(spikes1, spikes2, t_start, t_end, max_tau):
N2 = len(spikes2)
j = -1
c = np.zeros(N1) # coincidences
- for i in xrange(N1):
+ for i in range(N1):
while j < N2-1 and spikes2[j+1] < spikes1[i]:
# move forward until spikes2[j] is the last spike before spikes1[i]
# note that if spikes2[j] is after spikes1[i] we dont do anything