Skip to main content

write_text_stream

Function write_text_stream 

Source
pub fn write_text_stream(
    path: impl AsRef<Path>,
    stream: &EventStream,
) -> Result<(), IoError>
Expand description

Writes a stream as whitespace-separated t x y p lines (the reader’s default ColumnOrder::Txyp), t in raw microseconds and p as 0/1. Loading it back with time_unit="us" reproduces the events exactly; sensor size is inferred or passed as an option (txt carries no metadata header). The frame-domain counterpart lives in npz/HDF5.