From d3350f7419898c10f72d62e0c63d044804c4a470 Mon Sep 17 00:00:00 2001 From: Mario Mulansky Date: Tue, 29 Mar 2016 14:46:49 +0200 Subject: another python3 fix --- pyspike/cython/python_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3