instrument: Add channel discovery to MeasurementCsv
- Add "unknown" measurement type to be used when the type of measurement
for a CSV column cannot be established.
- Make channels argument optional for MeasurementCsv.
- If channels for a MeasurementCsv have not been specified, attempt to
discover them from the CSV header. This will check if each entry in
the header ends with the name of a known MeasurementType prefixed with
a "_"; if so, it will assume the reset of the entry is the site.
Otherwise, the entire entry will be assumed to be the site and
"unknown" MeasurementType will be used.
1 file changed