Data classes#

See Data objects for an introduction. The methods for pupil and gaze data are in the namespaces d.pupil (Pupil methods (d.pupil)) and d.gaze (Gaze methods (d.gaze)), the plots in d.plot (Plotting (d.plot)).

Main class#

EyeData holds the data. Its methods for any channel (crop, downsample, masks and layers, events, intervals, segments, saving, …) are listed on its page.

EyeData

Class for eye-tracking and pupillometric data: pupil size and/or gaze position (x, y) of one or two eyes.

Channels, layers and mask policies#

The time series (d["left_pupil"]) and their mask layers are stored in an EyeDataDict (d.data). A MaskPolicy says which layers make a sample unusable ("default", "strict", "raw").

EyeDataDict

A dictionary that contains 1-dimensional ndarrays of equal length and with the same datatype (float).

MaskPolicy

Which samples count as unusable (masked).

Head-mounted eye trackers#

HeadMountedEyeData holds recordings of eye-tracking glasses (see Loading and saving data): the gaze position in the scene video, additional channels in d.aux (e.g. the motion sensors) and the methods for the scene video in the namespace d.scene (as pipeline steps: pp.scene.<method>(...)).

HeadMountedEyeData

Data from a head-mounted eye tracker (eye-tracking glasses).

eyedata.head_mounted.SceneNamespace

Methods for the scene video and the motion sensors of a head-mounted eye tracker, accessed as d.scene (e.g., d.scene.luminance()) on a HeadMountedEyeData object.

History#

Simulated data (SimEyeData) are listed under Simulated data: pp.sim.

keephistory

Decorator that records a method call in the history of the returned object.

Quality report#

See EyeData.quality_report().

QualityReport

Data-quality report for an eyedata object.

QualityReports

Quality reports of several recordings (e.g., of a dataset).

QualityMetric

A single quality measure.

Tables#

Some results are dicts that are displayed as a table (pandas.DataFrame):

Table

A table: a dict of columns (column name -> numpy array), all of the same length (one value per row).

RecordDict

A dict of records that is displayed as a table.