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? |
The string formatting page has different examples of formatting data including the number of digits after the decimal point.
|
Thanks Jeff
|
All times are GMT -7. The time now is 06:42 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC