Skip to content

Commit

Permalink
Merge pull request #63 from KaushikMalapati/latch_by_default
Browse files Browse the repository at this point in the history
set latching to True if unspecified
  • Loading branch information
tangkong authored Feb 10, 2025
2 parents 3dc96c8 + 28ff18a commit b84d238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/alarm_csv2xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def csvtoxml(infile, outfile, cname):
desc = ET.SubElement(pv, 'description')
desc.text = row['Description']
latch = ET.SubElement(pv, 'latching')
latch.text = row['Latch'].capitalize()
latch.text = row['Latch'].capitalize() if row['Latch'] else "True"
delay = ET.SubElement(pv, 'delay')
delay.text = row['Delay']
if 'Filter' in row and row['Filter']:
Expand Down

0 comments on commit b84d238

Please sign in to comment.