pynapple.core.interval_set.IntervalSet.drop_short_intervals#

IntervalSet.drop_short_intervals(threshold, time_units='s')[source]#

Drops the short intervals in the interval set with duration shorter than threshold.

Parameters:
  • threshold (numeric) – Time threshold for “short” 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:

IntervalSet