Skip to content

Commit

Permalink
Merge pull request #1231 from papr/fixation_basedata_ref
Browse files Browse the repository at this point in the history
Online Fixation Detector: Replace base data with references
  • Loading branch information
mkassner authored Jul 20, 2018
2 parents d072f85 + aa6b561 commit 315188d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pupil_src/shared_modules/fixation_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,16 @@ def recent_events(self, events):
new_fixation['id'] = self.id_counter
self.id_counter += 1

self.replace_basedata_with_references(new_fixation)
events['fixations'].append(new_fixation)
self.recent_fixation = new_fixation
else:
self.recent_fixation = None

def replace_basedata_with_references(self, fixation):
fixation['base_data'] = [(gaze['topic'], gaze['timestamp'])
for gaze in fixation['base_data']]

def gl_display(self):
if self.recent_fixation:
fs = self.g_pool.capture.frame_size # frame height
Expand Down

0 comments on commit 315188d

Please sign in to comment.