Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in preset_widget #195

Open
tlambert03 opened this issue Sep 12, 2023 · 0 comments
Open

error in preset_widget #195

tlambert03 opened this issue Sep 12, 2023 · 0 comments

Comments

@tlambert03
Copy link
Member

tlambert03 commented Sep 12, 2023

got the following traceback when setting up a new scope.

Was trying to create a new config preset

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
File ~\miniforge3\envs\pymmcore\lib\site-packages\pymmcore_widgets\_group_preset_widget\_group_preset_table_widget.py:223, in GroupPresetTableWidget._on_new_group_preset(self=<pymmcore_widgets._group_preset_widget._group_preset_table_widget.GroupPresetTableWidget object>, group='Channel', preset='FITC', device='TIFilterBlock1', property='Label', value='2-FITC')
    220             for d, p, v in dev_prop_val:
    221                 self._mmc.defineConfig(group, preset, d, p, v)
--> 223 self._populate_table()
        self = <pymmcore_widgets._group_preset_widget._group_preset_table_widget.GroupPresetTableWidget object at 0x000002B98B913370>

File ~\miniforge3\envs\pymmcore\lib\site-packages\pymmcore_widgets\_group_preset_widget\_group_preset_table_widget.py:242, in GroupPresetTableWidget._populate_table(self=<pymmcore_widgets._group_preset_widget._group_preset_table_widget.GroupPresetTableWidget object>)
    240 self.table_wdg.insertRow(row)
    241 self.table_wdg.setItem(row, 0, QTableWidgetItem(str(group)))
--> 242 wdg = self._create_group_widget(group)
        self = <pymmcore_widgets._group_preset_widget._group_preset_table_widget.GroupPresetTableWidget object at 0x000002B98B913370>
        group = 'Channel'
    243 self.table_wdg.setCellWidget(row, 1, wdg)
    244 if isinstance(wdg, PresetsWidget):

File ~\miniforge3\envs\pymmcore\lib\site-packages\pymmcore_widgets\_group_preset_widget\_group_preset_table_widget.py:272, in GroupPresetTableWidget._create_group_widget(self=<pymmcore_widgets._group_preset_widget._group_preset_table_widget.GroupPresetTableWidget object>, group='Channel')
    269 device, prop, _, dev_prop_val_count = self._get_cfg_data(group, presets[0])
    271 if len(presets) > 1 or dev_prop_val_count > 1 or dev_prop_val_count == 0:
--> 272     return PresetsWidget(group)
        PresetsWidget = <class 'pymmcore_widgets._presets_widget.PresetsWidget'>
        group = 'Channel'
    273 else:
    274     return PropertyWidget(device, prop)

File ~\miniforge3\envs\pymmcore\lib\site-packages\pymmcore_widgets\_presets_widget.py:58, in PresetsWidget.__init__(self=<pymmcore_widgets._presets_widget.PresetsWidget object>, group='Channel', parent=None, mmcore=None)
     56 self._combo.currentTextChanged.connect(self._update_tooltip)
     57 self._combo.addItems(self._presets)
---> 58 self._combo.setCurrentText(self._mmc.getCurrentConfig(self._group))
        self._mmc = <CMMCorePlus at 0x2b9ff3a5b20>
        self._group = 'Channel'
        self._combo = <PyQt5.QtWidgets.QComboBox object at 0x000002B9839B7F40>
        self = <pymmcore_widgets._presets_widget.PresetsWidget object at 0x000002B9839B7A30>
     60 self._set_style_if_props_not_match_preset()
     62 self.setLayout(QHBoxLayout())

RuntimeError: No device with label "CSUX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant