Changeset 417
- Timestamp:
- 08/17/09 21:27:28 (3 years ago)
- Files:
-
- 1 modified
-
branches/interval/src/signals/intervals.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/interval/src/signals/intervals.py
r413 r417 107 107 """ 108 108 Shift all stop times of the interval by shift (ms). If from_start is 109 true, use start times as the reference to compute the new stop times109 true, use start times as the reference to compute the new stop times 110 110 """ 111 111 interval_array = numpy.array(self.interval_data) … … 162 162 return tot_duration 163 163 164 def slice_times(self, times): 164 def slice_times(self, times) : 165 if times.__class__.__name__ == 'SpikeTrain' : 166 times = numpy.array(times.spike_times) 167 else : 168 times = numpy.array(times) 165 169 spikes_selector = numpy.zeros(len(times), dtype=numpy.bool) 166 170 if HAVE_INTERVAL:
