Pupil methods (d.pupil)#

The methods for pupil data are used as d.pupil.<method>(...): blink detection, merging and interpolation, filters, merging the eyes, baseline and response models, and the foreshortening correction. They raise an error if the object has no pupil data, change the object in place unless inplace=False is given, and return it. The exceptions return a result instead of the object: fit_foreshortening() (the fitted calibration), blinks_optimize_parameters() (the tuned parameters of the blink interpolation) and spectrum() (the power spectrum).

As pipeline steps, the same methods are pp.pupil.<method>(...) with the same arguments (see Pipelines):

d.pupil.blinks_detect().pupil.lowpass_filter(cutoff=4)    # methods
d = d | (pp.pupil.blinks_detect() | pp.pupil.lowpass_filter(cutoff=4))  # steps

The blink getters and setters (get_blinks(), set_blinks(), blink_stats(), …) work on mask layers of any variable and are methods of the data object itself.

eyedata.pupil.PupilNamespace

Methods for pupil data, accessed as d.pupil (e.g., d.pupil.blinks_detect()).