Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Offline Pupil Detection data storage during detection #1899

Merged
merged 8 commits into from
Jun 3, 2020

Conversation

papr
Copy link
Contributor

@papr papr commented Jun 2, 2020

Instead of using Mutable_Bisectors (which use nump.insert), use a timestamp->datum mapping. This has the advantage of being faster and avoids duplicated entries when restarting the detection while there is an existing detection running.

This PR also correctly announces cached pupil data as "existing" instead of "new". This avoids recalculating e.g. offline gaze mappings on restoring a session.

@papr papr requested review from romanroibu and pfaion June 2, 2020 16:54
@pfaion
Copy link
Contributor

pfaion commented Jun 3, 2020

@papr Did you find a reliable way of reproducing the crash with insert?

@papr
Copy link
Contributor Author

papr commented Jun 3, 2020

The issue was caused when the Bisector was initialized with data (which was transformed into a ndarray) and then data was inserted during the pupil redetection. I think this was the case when restoring cached offline pupil data and then hitting recalculate.

@papr papr requested a review from pfaion June 3, 2020 14:01
@papr papr merged commit 2285f21 into develop Jun 3, 2020
@papr papr deleted the pupil_data_collector branch June 3, 2020 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants