22 __all__ = [
"PatchInfo"]
26 """Information about a patch within a tract of a sky map 28 See TractInfo for more information. 31 def __init__(self, index, innerBBox, outerBBox):
32 """Construct a PatchInfo 34 @param[in] index: x,y index of patch (a pair of ints) 35 @param[in] innerBBox: inner bounding box (an afwGeom.Box2I) 36 @param[in] outerBBox: inner bounding box (an afwGeom.Box2I) 41 if not outerBBox.contains(innerBBox):
42 raise RuntimeError(
"outerBBox=%s does not contain innerBBox=%s" % (outerBBox, innerBBox))
50 """Get inner bounding box 55 """Get outer bounding box 62 return (self.
getIndex() == rhs.getIndex()) \
69 return not self.
__eq__(rhs)
72 """Return a brief string representation 74 return "PatchInfo(index=%s)" % (self.
getIndex(),)
77 """Return a detailed string representation 79 return "PatchInfo(index=%s, innerBBox=%s, outerBBox=%s)" % \
def __init__(self, index, innerBBox, outerBBox)