pynapple.core.interval_set.IntervalSet.merge_close_intervals#

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

Merges intervals that are very close.

Parameters:
  • threshold (numeric) – time threshold for the closeness of the intervals

  • time_units (None, optional) – time units for the threshold (‘us’, ‘ms’, ‘s’ [default])

Returns:

out – a copied IntervalSet with merged intervals

Return type:

IntervalSet