ilastik / lazyflow

lazy parallel ondemand zero copy numpy array data flows with caching and dirty propagation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slot.value is different from slot[:].wait()

kemaleren opened this issue · comments

Assuming we have some slot called slot:

d = {0 : "astring"}
slot.setValue(d)
slot[:].wait() # returns the full dictionary
slot.value  # returns the string "astring"

Slot.value() assumes that the value was wrapped in a numpy.ndarray. Either this should happen automatically in Slot.setValue(), or this assumption should be weakened.