diff options
Diffstat (limited to 'pyspike/function.py')
-rw-r--r-- | pyspike/function.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pyspike/function.py b/pyspike/function.py index 62b0e2c..e0dadf6 100644 --- a/pyspike/function.py +++ b/pyspike/function.py @@ -429,6 +429,7 @@ class DiscreteFunction(object): """ def get_indices(ival): + """ Retuns the indeces surrounding the given interval""" start_ind = np.searchsorted(self.x, ival[0], side='right') end_ind = np.searchsorted(self.x, ival[1], side='left') assert start_ind > 0 and end_ind < len(self.x), \ |