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.
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").
A dictionary that contains 1-dimensional ndarrays of equal length and with the same datatype (float). |
|
Which samples count as unusable (masked). |
Simulated data and history#
EyeData with simulation metadata for testing and validation. |
Decorator that records a method call in the history of the returned object. |
Quality report#
Data-quality report for an eyedata object. |
|
A single quality measure. |
Tables#
Some results are dicts that are displayed as a table
(pandas.DataFrame):
results with one row per event or trial (e.g.,
Events.to_table(),SegmentedEyeData.gaze.dwell_time) are aTable, a dict of numpy columnsresults per channel (e.g.,
EyeData.layer_stats(): channel -> layer -> statistics) and the list of example datasets are aRecordDict, a dict of records
A table: a dict of columns (column name -> numpy array), all of the same length (one value per row). |
|
A dict of records that is displayed as a table. |