Skip to content

Commit

Permalink
gui: ignore lasers that aren't displayed on the gui
Browse files Browse the repository at this point in the history
  • Loading branch information
hartytp authored and Local Administrator committed May 9, 2019
1 parent 65b1dcc commit dd90d41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wand/frontend/wand_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def notifier_cb(self, db, server, mod):
# data from all three Notifier interfaces (laser, freq, osa)
displays = self.laser_displays
for laser in mod["struct"].keys():
if laser not in self.laser_displays.keys():
continue

if laser not in set(self.laser_db.keys()).intersection(
set(self.freq_db.keys())).intersection(
set(self.osa_db.keys())):
Expand Down

0 comments on commit dd90d41

Please sign in to comment.