pymovements.Dataset.load#
- Dataset.load(*, participants: bool | None = None, events: bool | None = None, preprocessed: bool = False, stimuli: bool | None = None, subset: dict[str, float | int | str | list[float | int | str]] | None = None, events_dirname: str | None = None, preprocessed_dirname: str | None = None, extension: str = 'feather') Dataset[source]#
Parse file information and load all gaze files.
The parsed file information is assigned to the
fileinfoattribute. All gaze files will be loaded as dataframes and assigned to thegazeattribute.- Parameters:
participants (bool | None) – If
True, load participants data. IfNone, load participants data only if available. (default: None)events (bool | None) – If
True, load previously saved event data. (default: None)preprocessed (bool) – If
True, load previously saved preprocessed data, otherwise load raw data. (default: False)stimuli (bool | None) – If
True, load stimulus data. IfNone, load stimulus data only if available. (default: None)subset (dict[str, float | int | str | list[float | int | str]] | None) – If specified, load only a subset of the dataset. All keys in the dictionary must be present in the fileinfo dataframe inferred by scan(). Values can be either float, int , str or a list of these. (default: None)
events_dirname (str | None) – One-time usage of an alternative directory name to load data relative to
path. (default: None)preprocessed_dirname (str | None) – One-time usage of an alternative directory name to load data relative to
path. (default: None)extension (str) – Specifies the file format for loading data. Valid options are: csv, feather, tsv, txt, asc. (default: ‘feather’)
- Returns:
Returns self, useful for method cascading.
- Return type: