aeye-lab / pymovements

A python package for processing eye movement data
https://pymovements.readthedocs.io
MIT License
61 stars 12 forks source link

load gaze files with gaze.from_edf() #509

Open dkrako opened 1 year ago

dkrako commented 1 year ago

Description of the problem

Followup to #508 where it would be even nice to not have to convert from edf to asc manually.

Description of a solution

Function signature proposal:

def from_edf(
    path: str | Path,
    asc_path: str | Path | None = None,
    retain_asc: bool = False,
    edf2asc_path: str | Path | None,
) -> GazeDataFrame:

In the function edf2asc from SR research would need to be called and an asc file will be created at the asc_path.