Skip to content

Commit

Permalink
Merge pull request #1563 from papr/pupil_timeline_float32
Browse files Browse the repository at this point in the history
Sample pupil timelines with float32 precision
  • Loading branch information
papr authored Jul 31, 2019
2 parents feae9ea + 690f6d1 commit 88ac669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pupil_src/shared_modules/pupil_producers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ def cache_pupil_timeline_data(self, key):
pupil_positions.timestamps[0],
pupil_positions.timestamps[-1],
)
timestamps_target = np.linspace(t0, t1, NUMBER_SAMPLES_TIMELINE)
timestamps_target = np.linspace(
t0, t1, NUMBER_SAMPLES_TIMELINE, dtype=np.float32
)

data_indeces = np.searchsorted(
pupil_positions.timestamps, timestamps_target
Expand Down

0 comments on commit 88ac669

Please sign in to comment.