64 def __init__(self, index, innerBBox, outerBBox, sequentialIndex,
66 cellInnerDimensions=(0, 0), cellBorder=0,
67 numCellsPerPatchInner=0, numCellsInPatchBorder=0):
73 if not outerBBox.contains(innerBBox):
74 raise RuntimeError(
"outerBBox=%s does not contain innerBBox=%s" % (outerBBox, innerBBox))
75 if not isinstance(cellInnerDimensions, (Iterable, Extent2I)):
76 raise ValueError(
"Input cellInnerDimensions is not an iterable.")
77 if len(cellInnerDimensions) != 2:
78 raise ValueError(
"Input cellInnerDimensions does not have two values.")
82 if numCellsPerPatchInner == 0:
87 y=numCellsPerPatchInner + 2*numCellsInPatchBorder)