Skip to content

Commit 8d1d2e0

Browse files
committed
bugfix: parameters with names such as "height" or "width" made the optimizer crash
1 parent 919def6 commit 8d1d2e0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# See also: https://caremad.io/posts/2013/07/setup-vs-requirement/
44

55
napari-workflows
6+
napari-assistant>=0.1.9
67
-e .

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ install_requires =
4343
matplotlib
4444
scipy
4545
napari-workflows
46+
napari-assistant>=0.1.9
4647

4748
[options.packages.find]
4849
where = src

src/napari_workflow_optimizer/gui/_dock_widget.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,8 @@ def _plot_quality(self):
203203
self.layout().addWidget(self._result_plot)
204204

205205
def update_viewer(self):
206-
WIDGET_KEY = "magic_gui_widget"
207-
208206
def find_widget(parent, name):
209-
if hasattr(parent, name):
210-
return getattr(parent, name)
211-
212-
from napari_pyclesperanto_assistant._gui._category_widget import category_args_numeric
207+
from napari_assistant._gui._category_widget import category_args_numeric
213208
for n in category_args_numeric:
214209
if hasattr(parent, n):
215210
widget = getattr(parent, n)

0 commit comments

Comments
 (0)