ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
enlighten.parser.DashFileParser.DashMeasurement Class Reference

Represents data that will go into the next Measurement we generate (or "could", for Dash data we don't actually disposition at this time). More...

Public Member Functions

 __init__ (self, row)
 

Public Attributes

 detector_temperature_degC = float(row.get("Temperature", -1))
 
 laser_temperature_degC = float(row.get("Laser Temperature", -1))
 
 note = None
 
 processed_reading = None
 
 timestamp = datetime.datetime.now()
 

Detailed Description

Represents data that will go into the next Measurement we generate (or "could", for Dash data we don't actually disposition at this time).

The distinction between DashMeasurement and DashSpectrometer is kind of arbitrary, (they're all mixed in the Dash metadata prefixes), but helps distinguish "spectrometer" data from "measurement" data.

Todo
consider replacing both this and DashSpectrometer with a generalized ExportedMeasurement, containing a generic post_process_metadata() method
Todo
instantiate a Reading object and write detector/laser temperature to it

Constructor & Destructor Documentation

◆ __init__()

enlighten.parser.DashFileParser.DashMeasurement.__init__ ( self,
row )

Member Data Documentation

◆ detector_temperature_degC

enlighten.parser.DashFileParser.DashMeasurement.detector_temperature_degC = float(row.get("Temperature", -1))

◆ laser_temperature_degC

enlighten.parser.DashFileParser.DashMeasurement.laser_temperature_degC = float(row.get("Laser Temperature", -1))

◆ note

enlighten.parser.DashFileParser.DashMeasurement.note = None

◆ processed_reading

enlighten.parser.DashFileParser.DashMeasurement.processed_reading = None

◆ timestamp

enlighten.parser.DashFileParser.DashMeasurement.timestamp = datetime.datetime.now()

The documentation for this class was generated from the following file: