cd4ddf72426281fc556e980fd9635bfb5b063577,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


        if self.OtherInput.ready() and self.RawInput.ready():
            rawTaggedShape = self.RawInput.meta.getTaggedShape()
            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 )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


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: deepgram/kur
Commit Name: d1dfcc0b80c4ecead8866473e5cfdfd351ac7cbd
Time: 2017-05-10
Author: ajsyp@syptech.net
File Name: kur/backend/keras_backend.py
Class Name: KerasBackend
Method Name: process_loss


Project Name: deepgram/kur
Commit Name: d1dfcc0b80c4ecead8866473e5cfdfd351ac7cbd
Time: 2017-05-10
Author: ajsyp@syptech.net
File Name: kur/backend/pytorch_backend.py
Class Name: PyTorchBackend
Method Name: process_loss


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