ilastik/lazyflow

Operator.setInSlot does not support integer indices (only slice indices)

burgerdev opened this issue · 0 comments

slicingtools.is_bounded expects key to be tuple of slices, but key can be mixed tuple of slices and ints.

Test

op.Input[0, 0] = 1

Result

File "/home/markus/Coding/hci/lazyflow/lazyflow/slot.py", line 953, in __setitem__
    assert slicingtools.is_bounded(key), \
  File "/home/markus/Coding/hci/lazyflow/lazyflow/utility/slicingtools.py", line 79, in is_bounded
    return all((sl.stop != None for sl in slicing))
  File "/home/markus/Coding/hci/lazyflow/lazyflow/utility/slicingtools.py", line 79, in <genexpr>
    return all((sl.stop != None for sl in slicing))
AttributeError: 'int' object has no attribute 'stop'