CsvFileWriter#

class CsvFileWriter(file: IO[str])[source]#

Bases: FileWriter[str]

Write one CSV row per channel value, after a header unless the stream already has data.

Wrap the stream and write the header, unless the stream can seek and is past its start.

Raises:

ValueError – If the stream is not writable or is not a text stream.

Attributes

Methods

write

Append data to CSV file.

mode: str = 'a'#
newline: str | None = ''#
write(
data: Measurement | Command,
) → None[source]#

Append data to CSV file.