View Single Post
  #1  
Old 10-17-2018, 05:50 AM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
Write Eye-tracking data to file

I want to write real-time eye-tracking data in file while vizard is running. I want my data values to get store upto 5 decimal places as tobii eyetracker is giving values upto 16 decimal places, If i use %s for writing but not working for %f. My code is:
data = '\t%f\t%f\t\t%f\n'%(st,gaze_left_eye1,gaze_right_e ye1)
f1.write(data)

Why this code not working?
Reply With Quote