Complete the code to define the first step in ISA-18.2 alarm management lifecycle.
alarm_lifecycle = ['[1]', 'Rationalization', 'Detailed Design', 'Implementation', 'Operation', 'Maintenance']
The first step in ISA-18.2 alarm management lifecycle is Identification, where alarms are identified and documented.
Complete the code to set the alarm priority according to ISA-18.2 standards.
alarm_priority = '[1]' # Options: Low, Medium, High, Critical
ISA-18.2 defines alarm priorities including Critical for the highest urgency alarms.
Fix the error in the alarm configuration code to comply with ISA-18.2.
alarm_config = {'name': 'High Temp', 'priority': '[1]', 'enabled': True}The priority must be a valid ISA-18.2 level like Critical, not a boolean or None.
Fill both blanks to create a dictionary comprehension that filters active alarms with priority above Medium.
filtered_alarms = {alarm['id']: alarm for alarm in alarms if alarm['enabled'] == [1] and alarm['priority'] [2] 'Medium'}We filter alarms that are enabled (True) and have priority greater than (>) 'Medium'.
Fill all three blanks to create a dictionary of alarm names and their priorities for alarms that are active and critical.
critical_alarms = {alarm['[1]']: alarm['[2]'] for alarm in alarms if alarm['enabled'] == [3] and alarm['priority'] == 'Critical'}The dictionary keys are alarm name, values are priority, filtered for enabled (True) and critical alarms.