#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
The string formatting page has different examples of formatting data including the number of digits after the decimal point.
|
#3
|
|||
|
|||
Thanks Jeff
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizard and Matlab | sagar29 | Vizard | 7 | 12-25-2017 10:36 PM |
Use saved text file data as replay sources problem | mizutani_jun | Vizard | 4 | 10-14-2010 04:49 PM |
writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 05:18 AM |
Flagging the Data | Elittdogg | Vizard | 5 | 04-11-2008 11:40 AM |
tracking using quaternarion data | jfreeman | Vizard | 2 | 06-01-2005 08:48 AM |