data_file_writer
frog.hardware.data_file_writer
¤
Provides a class for writing sensor data to a CSV file.
Classes¤
DataFileWriter()
¤
A class for writing sensor data to a CSV file.
This class is a singleton. Every time a new file needs to be written this instance is reused.
Create a new DataFileWriter.
Source code in frog/hardware/data_file_writer.py
114 115 116 117 118 119 120 121 122 123 124 |
|
Functions¤
close()
¤
Close the current file handle.
Source code in frog/hardware/data_file_writer.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
|
open(path)
¤
Open a file at the specified path for writing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path of the file to write to |
required |
Source code in frog/hardware/data_file_writer.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
write(time, temperatures)
¤
Write temperature readings to the CSV file.
Source code in frog/hardware/data_file_writer.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
|