blink_cores#
- pypillometry.signal.blink_cores(sy, merge_distance=0, blink_val=0)[source]#
Cores of the blinks: the runs of missing samples.
Runs that are separated by at most merge_distance valid samples are one core (e.g., several quick blinks, or a blink with a few samples of signal in it), so that a core is surrounded by signal on both sides.
- Parameters:
- Return type:
- Returns:
array (n x 2) of start/end sample indices (end-exclusive) of the cores, from the first to the last missing sample of each