pynapple.core.interval_set.IntervalSet.drop_long_intervals#
- IntervalSet.drop_long_intervals(threshold, time_units='s')[source]#
Drops the long intervals in the interval set with duration longer than threshold.
- Parameters:
threshold (numeric) – Time threshold for “long” intervals
time_units (None, optional) – The time units for the treshold (‘us’, ‘ms’, ‘s’ [default])
- Returns:
out – A copied IntervalSet with the dropped intervals
- Return type: