old_code/varitem.py
def _setAlarms(self):
        """Select and load an alarm file and provide alarm file display item.
        """
        # Guess which alarm file to use.
        if VarItem.data_dict['S_DetSelPreampA'][1] == 0:
            if VarItem.data_dict['EdgeBlkValidityEnable'][1]:
                alarmFileName = 'HRC-I-TRIM.alarm'
            else:
                alarmFileName = 'HRC-I.alarm'
        elif VarItem.data_dict['S_InstSelect'][1] == 1:
            alarmFileName = 'HRC-S.alarm'
        else:
            alarmFileName = 'HRC-S-IMG.alarm'
        if alarmFileName != VarItem.alarmFileName:
            # Read the alarm file only if it has changed
            alarmFilePath = '/d0/hrc/src/rtcads/ALARMS'
            VarItem.alarmSet = readAlarmFile(alarmFilePath, alarmFileName)
            VarItem.alarmFileName = alarmFileName
        self.state = 'off'
        self.value = alarmFileName
Select and load an alarm file and provide alarm file display item.
        
Select and load an alarm file and provide alarm file display item.
Select and load an alarm file and provide alarm file display item .
def _setAlarms(self):
        if VarItem.data_dict['S_DetSelPreampA'][1] == 0:
            if VarItem.data_dict['EdgeBlkValidityEnable'][1]:
                alarmFileName = 'HRC-I-TRIM.alarm'
            else:
                alarmFileName = 'HRC-I.alarm'
        elif VarItem.data_dict['S_InstSelect'][1] == 1:
            alarmFileName = 'HRC-S.alarm'
        else:
            alarmFileName = 'HRC-S-IMG.alarm'
        if alarmFileName != VarItem.alarmFileName:
            alarmFilePath = '/d0/hrc/src/rtcads/ALARMS'
            VarItem.alarmSet = readAlarmFile(alarmFilePath, alarmFileName)
            VarItem.alarmFileName = alarmFileName
        self.state = 'off'
        self.value = alarmFileName
def _setAlarms ( self ) : if VarItem . data_dict [ 'S_DetSelPreampA' ] [ 1 ] == 0 : if VarItem . data_dict [ 'EdgeBlkValidityEnable' ] [ 1 ] : alarmFileName = 'HRC-I-TRIM.alarm' else : alarmFileName = 'HRC-I.alarm' elif VarItem . data_dict [ 'S_InstSelect' ] [ 1 ] == 1 : alarmFileName = 'HRC-S.alarm' else : alarmFileName = 'HRC-S-IMG.alarm' if alarmFileName != VarItem . alarmFileName : alarmFilePath = '/d0/hrc/src/rtcads/ALARMS' VarItem . alarmSet = readAlarmFile ( alarmFilePath , alarmFileName ) VarItem . alarmFileName = alarmFileName self . state = 'off' self . value = alarmFileName
Select and load an alarm file and provide alarm file display item.
Select and load an alarm file and provide alarm file display item .
"""Select and load an alarm file and provide alarm file display item.
        """ # Guess which alarm file to use. # Read the alarm file only if it has changed
self