from omv.analyzers.analyzer import OMVAnalyzer


class TemperatureAnalyzer(OMVAnalyzer):
    def before_running(self):
        self.query = self.engine.query_temperature()

    def parse_expected(self):
        return float(self.expected)

    def parse_observable(self):
        return float(self.engine.fetch_query(self.query))
