-
Notifications
You must be signed in to change notification settings - Fork 34
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
Static Offset per Device #331
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this update! This looks exactly as I would have envisioned it. In offline analysis, if wanting to use an offset for a different device, we'd only need to pull it from the spec. @celikbasak will need to review but this should work well for us.
@@ -26,6 +27,7 @@ def setUp(self): | |||
self.gaze_device_mock.content_type = 'Eyetracker' | |||
self.gaze_device_mock.sample_rate = 60 | |||
self.gaze_device_mock.is_active = False | |||
self.gaze_device_mock.static_offset = 0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is currently assumed 0.0 for my analyses as well, but I will think of a way to estimate the correct value
@@ -120,6 +124,7 @@ | |||
"sample_rate": 60.0, | |||
"description": "Tobii Nano. For use with the Tobii Pro SDK.", | |||
"excluded_from_analysis": ["device_ts", "system_ts", "left_pupil", "right_pupil"], | |||
"status": "active" | |||
"status": "active", | |||
"static_offset": 0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it 0 for now
Overview
Refactored code to allow configuration of a static_offset value for each device, rather than a global value set in the parameters.json.
Ticket
https://www.pivotaltracker.com/story/show/187737714
Contributions
Test