pymovements.utils.parsing.parse_eyelink#
- pymovements.utils.parsing.parse_eyelink(filepath: Path | str, patterns: list[dict[str, Any]] | None = None, schema: dict[str, Any] | None = None) tuple[pl.DataFrame, dict[str, Any]] #
Process EyeLink asc file.
- Parameters:
filepath (Path | str) – file name of ascii file to convert.
patterns (list[dict[str, Any]] | None) – list of patterns to match for additional columns. (default: None)
schema (dict[str, Any] | None) – Dictionary to optionally specify types of columns parsed by patterns. (default: None)
- Returns:
A tuple containing the parsed sample data and the metadata in a dictionary.
- Return type:
tuple[pl.DataFrame, dict[str, Any]]
- Raises:
Warning – If no metadata is found in the file.