BBN-Q / PyQLab

A python library for instrument control and superconducting QIP experiments.
Apache License 2.0
25 stars 11 forks source link

Sometimes you can't remove items from Experiment Settings GUI #65

Closed rmcgurrin closed 9 years ago

rmcgurrin commented 9 years ago

Steps to reproduce: 1) Add 3 new instruments like below: image

2) Select New2 and click "Remove" 3) click "Remove" again to remove New3

New3 is not removed and the following error is printed on the console: ... File "/Users/rmcgurrin/sandbox/q/PyQlab/DictManagerView.enaml", line 48, in clicked :: dictManager.remove_item(itemList.selected_item) File "/Users/rmcgurrin/sandbox/q/PyQlab/DictManager.py", line 34, in remove_item self.itemDict.pop(itemLabel) KeyError: u'New2'

Expected Behavior: New3 should be removed