Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

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

Open
burgerdev opened this issue Nov 17, 2014 · 0 comments
Open
Labels

Comments

@burgerdev
Copy link
Member

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'
@burgerdev burgerdev added the bug label Nov 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant