summaryrefslogtreecommitdiff
path: root/pyspike/cython/python_backend.py
diff options
context:
space:
mode:
authorMario Mulansky <mario.mulansky@gmx.net>2015-05-11 17:41:08 +0200
committerMario Mulansky <mario.mulansky@gmx.net>2015-05-11 17:41:08 +0200
commitbec2529367f1bdd5dac6d6fbaec560a30feec3c7 (patch)
tree9c817b1e3648b52238ae3aea44f5572097855f37 /pyspike/cython/python_backend.py
parent3b10b416940ae674df6d9dff8cdddc31085d8cf5 (diff)
treatment of empty spike trains in spike sync
Diffstat (limited to 'pyspike/cython/python_backend.py')
-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 1fd8c42..830dc69 100644
--- a/pyspike/cython/python_backend.py
+++ b/pyspike/cython/python_backend.py
@@ -340,7 +340,7 @@ def cumulative_sync_python(spikes1, spikes2):
def coincidence_python(spikes1, spikes2, t_start, t_end, max_tau):
def get_tau(spikes1, spikes2, i, j, max_tau):
- m = 1E100 # some huge number
+ m = t_end - t_start # use interval as initial tau
if i < len(spikes1)-1 and i > -1:
m = min(m, spikes1[i+1]-spikes1[i])
if j < len(spikes2)-1 and j > -1: