When using a high frequency eye tracker (or just being generally
unlucky), log entries would sometimes get written in the middle of a
gaze data line in the tsv output file. Fixed this by writing the full
gaze data sample in one go instead of breaking it up into smaller
writes.
Tested with 1200Hz Pro Spectrum, and writing a log message every ms without issues. Cannot guarantee that the issue will never happen again (don't know enough about threading in python, or the GIL) but feels pretty safe still.
When using a high frequency eye tracker (or just being generally unlucky), log entries would sometimes get written in the middle of a gaze data line in the tsv output file. Fixed this by writing the full gaze data sample in one go instead of breaking it up into smaller writes.
Tested with 1200Hz Pro Spectrum, and writing a log message every ms without issues. Cannot guarantee that the issue will never happen again (don't know enough about threading in python, or the GIL) but feels pretty safe still.