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

"Waveform and spectrogram display parameters" tab stops working and throws error #79

Open
avakiai opened this issue Nov 7, 2024 · 0 comments

Comments

@avakiai
Copy link

avakiai commented Nov 7, 2024

Hi Jan,

While annotating some data in the das gui I was occasionally changing the parameters under View > "VIdeo, waveform, and spectrogram display parameters". I noticed that sometimes, after having changed things a few times in an open file, I'm no longer able to get that window to open. Clicking on the tab results in the following error in the terminal:

Traceback (most recent call last):
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/xarray_behave/gui/app.py", line 1936, in <lambda>
    menuitem.triggered.connect(lambda: callback(qt_keycode))
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/xarray_behave/gui/app.py", line 2131, in set_spec_freq
    dialog = view_dialog.Form(parent=self, model=self)
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/xarray_behave/gui/view_dialog.py", line 191, in __init__
    TextSlider(
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/xarray_behave/gui/view_dialog.py", line 60, in __init__
    self.initUI()
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/xarray_behave/gui/view_dialog.py", line 96, in initUI
    self.sld.setValue(self.value)
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/superqt/sliders/_labeled.py", line 51, in setValue
    self._slider.setValue(value)
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/superqt/sliders/_generic_slider.py", line 115, in setValue
    value = self._bound(value)
  File "/gs/home/kiaia/.conda/envs/das_forge/lib/python3.10/site-packages/superqt/sliders/_generic_slider.py", line 338, in _bound
    return self._type_cast(max(self._minimum, min(self._maximum, value)))
TypeError: '<' not supported between instances of 'tuple' and 'float'

This comes after install of the conda-forge version of DAS.

das                       0.32.4                  py310_0    ncb
...
superqt                   0.6.7              pyh9208f05_0    conda-forge
...
xarray-behave             0.35.7                  py310_0    ncb
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