64099d49ad3f9a7b255044a581e204861b7e0db1,ilastik/applets/layerViewer/opLayerViewer.py,OpLayerViewer,checkConstraints,#OpLayerViewer#,43
Before Change
if self.RawInput.ready():
numChannels = self.RawInput.meta.getTaggedShape()["c"]
if numChannels != 1:
raise DatasetConstraintError(
"Layer Viewer",
"Raw data must have exactly one channel. " +
"You attempted to add a dataset with {} channels".format( numChannels ) )
if self.OtherInput.ready() and self.RawInput.ready():
rawTaggedShape = self.RawInput.meta.getTaggedShape()
otherTaggedShape = self.OtherInput.meta.getTaggedShape()
rawTaggedShape["c"] = None
After Change
otherTaggedShape = self.OtherInput.meta.getTaggedShape()
raw_time_size = rawTaggedShape.get("t", 1)
other_time_size = otherTaggedShape.get("t", 1)
if raw_time_size != other_time_size and raw_time_size != 1 and other_time_size != 1:
msg = "Your "raw" and "other" datasets appear to have differing sizes in the time dimension.\n"\
"Your datasets have shapes: {} and {}".format( self.RawInput.meta.shape, self.OtherInput.meta.shape )
raise DatasetConstraintError( "Layer Viewer", msg )
rawTaggedShape["c"] = None
otherTaggedShape["c"] = None
rawTaggedShape["t"] = None
otherTaggedShape["t"] = None
if dict(rawTaggedShape) != dict(otherTaggedShape):
msg = "Raw data and other data must have equal spatial dimensions (different channels are okay).\n"\
"Your datasets have shapes: {} and {}".format( self.RawInput.meta.shape, self.OtherInput.meta.shape )
raise DatasetConstraintError( "Layer Viewer", msg )
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: ilastik/ilastik
Commit Name: 64099d49ad3f9a7b255044a581e204861b7e0db1
Time: 2015-04-23
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/layerViewer/opLayerViewer.py
Class Name: OpLayerViewer
Method Name: checkConstraints
Project Name: ilastik/ilastik
Commit Name: 64099d49ad3f9a7b255044a581e204861b7e0db1
Time: 2015-04-23
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/layerViewer/opLayerViewer.py
Class Name: OpLayerViewer
Method Name: checkConstraints
Project Name: ilastik/ilastik
Commit Name: cd4ddf72426281fc556e980fd9635bfb5b063577
Time: 2015-03-04
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/layerViewer/opLayerViewer.py
Class Name: OpLayerViewer
Method Name: checkConstraints
Project Name: deepmind/sonnet
Commit Name: 62386f9bdb92662267f18fcf766c84ef6d0e7124
Time: 2018-07-17
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: _ConvND
Method Name: _apply_mask