Ilastik/lazyflow — Issue #31: MultiSlot IndexError
Author: bekaus
Created: 2012-01-31 14:04:53+00:00
State: open
Labels: bug

The following code throws an IndexError:

from lazyflow.graph import Graph
from lazyflow.operators import Op5ToMulti, OpArrayCache, OpBlockedArrayCache, \
OpArrayPiper, OpPredictRandomForest, \
OpSingleChannelSelector, OpSparseLabelArray, \
OpMultiArrayStacker, OpTrainRandomForest, OpPixelFeatures, \
OpMultiArraySlicer2,OpH5Reader, OpBlockedSparseLabelArray, \
OpMultiArrayStacker, OpTrainRandomForestBlocked, OpPixelFeatures, \
OpH5ReaderBigDataset, OpSlicedBlockedArrayCache, OpPixelFeaturesPresmoothed

graph = Graph()

images = Op5ToMulti( graph )
features = OpPixelFeaturesPresmoothed( graph )
cache = OpBlockedArrayCache( graph )

features.inputs["Input"].connect(images.outputs["Outputs"])

cache.inputs["Input"].connect(features.outputs["Output"])
cache.inputs["innerBlockShape"].setValue((1,32,32,32,16))
cache.inputs["outerBlockShape"].setValue((1,128,128,128,64))

cache.inputs["fixAtCurrent"].setValue( False )