// Duplicate the bg label list for all times
bgLabelVolume[...] = bgLabelList
bgLabelVolume = bgLabelVolume.view( vigra.VigraArray )
bgLabelVolume.axistags = vigra.defaultAxistags("tc")
self.opBgTimeSlicer.Input.setValue( bgLabelVolume )
else:
self.opBgTimeSlicer.Input.disconnect()
After Change
def setupOutputs(self):
if self.BlockShape.ready():
self._opCache.BlockShape.setValue( self.BlockShape.value )
else:
// By default, block shape is the same as the entire image shape,
// but only 1 time slice and 1 channel slice
taggedBlockShape = self.Input.meta.getTaggedShape()