Skip to content

Commit

Permalink
STY: Minor cleanup for annunciate mode changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Stelter committed Nov 14, 2023
1 parent 2e6cd30 commit 6286bee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions slam/alarm_tree_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,11 @@ def update_item(
item_to_update.filtered = True
elif item_to_update.filtered:
item_to_update.filtered = False
# status for active alarm (status="STATE_ALARM") should be consistent across CRYO and LCLS,
# also ensure annunciate is enabled on application level (self.annunciate) and also for the current item.
if item_to_update.is_in_active_alarm_state() and (self.annunciate and item_to_update.annunciating):
# prints bell character, cross platform way to generate "beep" noise,
# could be replaced with call to audio library for more sound options
print("\a")
# print("!!annunciate for alarm: ", item_to_update)

self.layoutChanged.emit()

Expand Down

0 comments on commit 6286bee

Please sign in to comment.