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 pm.gaze.from_asc() #508

Closed dkrako closed 10 months ago

dkrako commented 1 year ago

Description of the problem

Currently we need the Dataset class to load GazeDataFrames.

It would be much nicer to have a function like pymovements.gaze.from_asc() which returns a GazeDataFrame loaded from a asc file.

Description of a solution

Most functionality is included in both dataset/dataset_files.py and utils/parsing.py. utils.parsing.parse_eyelink() should be used in gaze.from_asc(), logic in dataset/dataset_files.py should be refactored into gaze/files.py and reused in dataset_files.py.

Minimum acceptance criteria