pynapple.IntervalSet.split#
- IntervalSet.split(interval_size, time_units='s')[source]#
Split IntervalSet to a new IntervalSet with each interval being of size interval_size.
Used mostly for chunking very large dataset or looping throught multiple epoch of same duration.
This function skips the epochs that are shorter than interval_size.
Note that intervals are strictly non-overlapping in pynapple. One microsecond is removed from contiguous intervals.