old_code/varitem.py
def _alarmState(self, conval):
        """Determine alarm state - general case.
        """
        self.state = 'off'
        alarms = VarItem.alarmSet[self.varname]
        if alarms['status']:
            if conval <= alarms['rll'] or conval >= alarms['rul']:
                self.state = 'bad'
            elif conval <= alarms['yll'] or conval >= alarms['yul']:
                self.state = 'warn'
            else:
                self.state = 'good'
Determine alarm state - general case.
        
Determine alarm state - general case.
Determine alarm state - general case .
def _alarmState(self, conval):
        self.state = 'off'
        alarms = VarItem.alarmSet[self.varname]
        if alarms['status']:
            if conval <= alarms['rll'] or conval >= alarms['rul']:
                self.state = 'bad'
            elif conval <= alarms['yll'] or conval >= alarms['yul']:
                self.state = 'warn'
            else:
                self.state = 'good'
def _alarmState ( self , conval ) : self . state = 'off' alarms = VarItem . alarmSet [ self . varname ] if alarms [ 'status' ] : if conval <= alarms [ 'rll' ] or conval >= alarms [ 'rul' ] : self . state = 'bad' elif conval <= alarms [ 'yll' ] or conval >= alarms [ 'yul' ] : self . state = 'warn' else : self . state = 'good'
Determine alarm state - general case.
Determine alarm state - general case .
"""Determine alarm state - general case.
        """
self
conval