diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-05-11 17:54:02 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-05-11 17:54:02 +0200 |
commit | a35402c208bd0ad31e5e60b6ddc55a3470e7bdde (patch) | |
tree | 1eca443c3b692c55438dd81b5f96cce51c8f4338 /pyspike/DiscreteFunc.py | |
parent | bec2529367f1bdd5dac6d6fbaec560a30feec3c7 (diff) |
bugfix: spike_sync=1 for empty spike trains
Diffstat (limited to 'pyspike/DiscreteFunc.py')
-rw-r--r-- | pyspike/DiscreteFunc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyspike/DiscreteFunc.py b/pyspike/DiscreteFunc.py index 6ade87e..17153ee 100644 --- a/pyspike/DiscreteFunc.py +++ b/pyspike/DiscreteFunc.py @@ -137,8 +137,8 @@ class DiscreteFunc(object): """ if len(self.y) <= 2: - # no actual values in the profile, return spike sync of 0 - return 0.0, 1.0 + # no actual values in the profile, return spike sync of 1 + return 1.0, 1.0 def get_indices(ival): """ Retuns the indeces surrounding the given interval""" |