Skip to content
Snippets Groups Projects

Write timestamps to file as dataset attributes along with data

Merged Vincent POLLET requested to merge timestamps_writing into master
2 files
+ 17
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 10
1
@@ -862,7 +862,16 @@ class StreamSave(StreamFilter):
raise ValueError("Output file is not a valid StreamFile.")
def put(self, data, timestamp=None):
self.file.put_frame(self.name, data)
"""Pass data and timestamp to the :obj:`~bob.io.stream.StreamFile` to write to disk.
Parameters
----------
data : :obj:`numpy.ndarray`
data to write to file.
timestamp : int or float
Timestamp of `data`, by default None.
"""
self.file.put_frame(self.name, data, timestamp)
################################################################################
Loading