diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-12-22 18:15:59 +0100 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-12-22 18:15:59 +0100 |
commit | e32272f4540de347abcc548a94239b625458b3a6 (patch) | |
tree | 409b60357e7dae2ff40d0e96cb9345d5673d431f /pyspike/SpikeTrain.py | |
parent | 94c5fd007d33a38f3c9d1121749cb6ffb162394c (diff) |
changed edge correction for single spikes
Spike trains with single spikes now only get auxiliary spikes at the edges
for the SPIKE distance instead of real spikes before.
Diffstat (limited to 'pyspike/SpikeTrain.py')
-rw-r--r-- | pyspike/SpikeTrain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyspike/SpikeTrain.py b/pyspike/SpikeTrain.py index 4b59a5d..19f2419 100644 --- a/pyspike/SpikeTrain.py +++ b/pyspike/SpikeTrain.py @@ -68,7 +68,7 @@ class SpikeTrain(object): """Returns the spikes of this spike train with auxiliary spikes in case of empty spike trains. """ - if len(self.spikes) < 2: + if len(self.spikes) < 1: return np.unique(np.insert([self.t_start, self.t_end], 1, self.spikes)) else: |