aeye-lab / pymovements

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

synethtic.step_function should return a GazeDataFrame object #507

Open dkrako opened 1 year ago

dkrako commented 1 year ago

Description of the problem

Currently the synthetic.step_function returns a numpy array, which was the way we worked before building up on polars.

This also means we have to create our own time array.

Description of a solution

Instead, it would be much nicer if a GazeDataFrame object would be returned, which could also feature a time column.

The steps could then be even given in milliseconds.

Minimum acceptance criteria