diff options
Diffstat (limited to 'src/argaze/DataLog/File.py')
-rw-r--r-- | src/argaze/DataLog/File.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/argaze/DataLog/File.py b/src/argaze/DataLog/File.py index 9253f66..12bad6d 100644 --- a/src/argaze/DataLog/File.py +++ b/src/argaze/DataLog/File.py @@ -12,7 +12,7 @@ from typing import TypeVar, Tuple from dataclasses import dataclass, field import os, pathlib -from argaze import DataFeatures +from argaze import DataFeatures, GazeFeatures @dataclass class TimeStampedDataLogger(DataFeatures.TimeStampedDataLogger): @@ -40,8 +40,8 @@ class TimeStampedDataLogger(DataFeatures.TimeStampedDataLogger): self._file.close() - def emit(self, timestamp: DataFeatures.TimeStampType, data: any): + def emit(self, timestamp: DataFeatures.TimeStampType, data: DataFeatures.DataDictionary): """Write timestamp and data separated by separator char as a new line into file.""" # Write into file - print(f'{timestamp}{self.separator}{data}', file=self._file, flush=True)
\ No newline at end of file + print(f'{timestamp}{self.separator}{eval(self.selector)}', file=self._file, flush=True)
\ No newline at end of file |