summaryrefslogtreecommitdiff
path: root/pyspike/DiscreteFunc.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyspike/DiscreteFunc.py')
-rw-r--r--pyspike/DiscreteFunc.py4
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"""