Example of how to check input data constraints.
if self.RawInput.ready():
numChannels = self.RawInput.meta.getTaggedShape()["c"]
if numChannels != 1:
raise DatasetConstraintError(
"Layer Viewer",
"Raw data must have exactly one channel. " +
After Change
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"\