if len(shape) < 5:
raise ValueError("Prediction maps must be a full 5d volume (txyzc)")
tags = self.LabelImage.meta.axistags
haveAxes = [tags.index(c) == i for i, c in enumerate("txyzc")]
if not all(haveAxes):
raise ValueError("Prediction maps have the wrong axes order (expected: txyzc)")
// bounding boxes are just one element arrays of type object
After Change
if len(shape) < 5:
raise ValueError("Prediction maps must be a full 5d volume (txyzc)")
tags = self.LabelImage.meta.getAxisKeys()
tags = "".join(tags)haveAxes = tags == "txyzc"
if not haveAxes:
raise ValueError("Label image has wrong axes order"
"(expected: txyzc, got: {})".format(tags))