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

Make add_pupil_ellipse a class to make it picklable #1376

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

ckbaumann
Copy link
Contributor

When starting a background process on Windows, the os creates an actual new process (instead of just a new fork). Therefore, everything needs to be copied / pickled. The eye video exporter formerly used a function factory to create a function that renders pupil positions, but the returned function would not be pickleable. This is now fixed by replacing the old functionality with a callable class that can get copied to the background process.

@ckbaumann ckbaumann self-assigned this Nov 6, 2018
@ckbaumann ckbaumann requested a review from papr November 6, 2018 09:32
Copy link
Contributor

@papr papr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first reasonable use of __call__ I have seen before! :-)

@papr papr merged commit df51687 into pupil-labs:master Nov 6, 2018
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.

2 participants