src/power_monitoring/current_monitor.py
def temp_threshold(self, tempValue, sign):
        """
        Returns boolean for crossed temperature threshold
        """
        tempRef = self.thresholdVoltage
        thresholdPct = 0.1

        if sign == 'GT':
            result = tempValue > tempRef*(1+thresholdPct)
        elif sign == 'LT':
            result = tempValue < tempRef*(1-thresholdPct)
        else:
            raise Exception("Invalid parameter: must be 'GT' or 'LT'")
        return result

        Returns boolean for crossed temperature threshold
        
Returns boolean for crossed temperature threshold
Returns boolean for crossed temperature threshold
def temp_threshold(self, tempValue, sign):
        tempRef = self.thresholdVoltage
        thresholdPct = 0.1
        if sign == 'GT':
            result = tempValue > tempRef*(1+thresholdPct)
        elif sign == 'LT':
            result = tempValue < tempRef*(1-thresholdPct)
        else:
            raise Exception("Invalid parameter: must be 'GT' or 'LT'")
        return result
def temp_threshold ( self , tempValue , sign ) : tempRef = self . thresholdVoltage thresholdPct = 0.1 if sign == 'GT' : result = tempValue > tempRef * ( 1 + thresholdPct ) elif sign == 'LT' : result = tempValue < tempRef * ( 1 - thresholdPct ) else : raise Exception ( "Invalid parameter: must be 'GT' or 'LT'" ) return result
Returns boolean for crossed temperature threshold
Returns boolean for crossed temperature threshold
"""
        Returns boolean for crossed temperature threshold
        """
self
tempValue
sign