Skip to content

Commit 8499131

Browse files
committed
Fix bugs in DDS device restart handling
1 parent 7c5463c commit 8499131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blacs/plugins/virtual_device/virtual_device_tab.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from qtutils.qt.QtWidgets import *
44

55
from labscript_utils.qtwidgets.toolpalette import ToolPaletteGroup
6-
from labscript_utils.qtwidgets.ddsoutput import DDSOutput
6+
from labscript_utils.qtwidgets.ddsoutput import AnalogOutput, DigitalOutput, DDSOutput
77

8+
from blacs.tab_base_classes import PluginTab
89
from blacs.tab_base_classes import PluginTab
910

1011
class VirtualDeviceTab(PluginTab):
@@ -86,11 +87,10 @@ def disconnect_widgets(self, closing_device_name):
8687
if DO[0] == closing_device_name:
8788
self._DOs[DO].last_DO = self._DOs[DO].get_DO()
8889
self._DOs[DO].set_DO(None)
89-
for DDDS in self._DDSs.keys():
90+
for DDS in self._DDSs.keys():
9091
if DDS[0] == closing_device_name:
9192
old_DDS = self._blacs_tablist[DDS[0]].get_channel(DDS[1])
9293
self._DDSs[DDS].last_DDS = old_DDS
93-
old_DDS.remove_widget(self._DDSs[DDS])
9494

9595
def place_widget_group(self, name, widgets):
9696
widget = QWidget()

0 commit comments

Comments
 (0)