from napari_workflows import Workflow
w = Workflow()
w.set("x", 10)
w.roots()
Traceback (most recent call last):
File "/Users/milton.m/Programming/workflows_bug.py", line 5, in <module>
w.roots()
File "/opt/anaconda3/envs/napari2/lib/python3.10/site-packages/napari_workflows/_workflow.py", line 112, in roots
keys_with_functions = [key for key, task in self._tasks.items() if callable(task[0])]
File "/opt/anaconda3/envs/napari2/lib/python3.10/site-packages/napari_workflows/_workflow.py", line 112, in <listcomp>
keys_with_functions = [key for key, task in self._tasks.items() if callable(task[0])]
TypeError: 'int' object is not subscriptable
Here is an example:
Using
napari-workflows==0.2.9
.Should be an easy fix.