pymovements.datasets.public_dataset.PublicDataset.load_gaze_files#

PublicDataset.load_gaze_files(preprocessed: bool = False, preprocessed_dirname: str | None = None) list[GazeDataFrame][source]#

Load all available gaze data files.

Parameters:
  • preprocessed (bool) – If True, saved preprocessed data will be loaded, otherwise raw data will be loaded.

  • preprocessed_dirname (str) – One-time usage of an alternative directory name to save data relative to pymovements.Dataset.path(). This argument is used only for this single call and does not alter pymovements.Dataset.preprocessed_rootpath().

Returns:

List of gaze dataframes.

Return type:

list[GazeDataFrame]

Raises:
  • AttributeError – If fileinfo is None or the fileinfo dataframe is empty.

  • RuntimeError – If file type of gaze file is not supported.