You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first bug is located in the `link_attribute.unlink()` method, which calls the `traitlets `package, a dependency of `ipywidgets`. These are the steps to reproduce it:
Make an empty figure with no sim or loaded data in the app.
Load or simulate data.
This is the traceback:
'Traceback (most recent call last):
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 126, in wrapper
link_attribute.unlink()
File "/mnt/c/Projects/Github/hnn-core-ccv/venv310/lib/python3.10/site-packages/traitlets/traitlets.py", line 344, in unlink
self.source[0].unobserve(self._update_target, names=self.source[1])
File "/mnt/c/Projects/Github/hnn-core-ccv/venv310/lib/python3.10/site-packages/traitlets/traitlets.py", line 1698, in unobserve
self._remove_notifiers(handler, name, type)
File "/mnt/c/Projects/Github/hnn-core-ccv/venv310/lib/python3.10/site-packages/traitlets/traitlets.py", line 1592, in _remove_notifiers
self._trait_notifiers[name][type].remove(handler)\nValueError: list.remove(x): x not in list'
The second bug is when you go to the visualization tab with no loaded data, and click the button 'Make figure'. This is the traceback:
'Traceback (most recent call last):
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 129, in wrapper
result = f(self, *args, **kwargs)
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 811, in add_figure
_add_figure(None,
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 685, in _add_figure
_add_axes_controls(widgets, data, fig=fig, axd=axd)
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 627, in _add_axes_controls
children = [
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 628, in <listcomp>
_get_ax_control(widgets, data, fig_idx=fig_idx, fig=fig, ax=ax)
File "/mnt/c/Projects/Github/hnn-core-ccv/hnn_core/gui/_viz_manager.py", line 432, in _get_ax_control
sim_name_default = simulation_names[-1]\nIndexError: tuple index out of range'
gtdang
changed the title
Creating figures with no data throws multiple exceptions
GUI: Creating figures with no data throws multiple exceptions
Mar 29, 2024
This is the traceback:
The second bug is when you go to the visualization tab with no loaded data, and click the button 'Make figure'. This is the traceback:
Originally posted by @kmilo9999 in #730 (comment)
The text was updated successfully, but these errors were encountered: