This function processes a single block of pupil data to extract epochs and optionally compute and apply baseline corrections. It handles the core epoching and baselining logic for a single block of data.
process_epoch_and_baselines(eyeris, timestamps, evs, lims, hz, verbose)
A list containing epoch and baseline results
An object of class eyeris
derived from load_asc()
A list containing start and end timestamps
Events specification for epoching (character vector or list)
Time limits for epochs (numeric vector)
Sampling rate in Hz
A flag to indicate whether to print detailed logging messages
This function is called by the internal epoch_and_baseline_block()
function.