Skip to content

Commit

Permalink
Update mock PatchInfo for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Nov 5, 2021
1 parent 34d4f2c commit 50489ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_isPrimaryFlag.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,15 @@ def getPatchInfo(self, index):

bbox = Box2I(Point2I(x, y), Extent2I(width, height))

nx, ny = self._numPatches
sequentialIndex = nx*y + x

patchInfo = PatchInfo(
index=index,
innerBBox=bbox,
outerBBox=bbox,
sequentialIndex=sequentialIndex,
tractWcs=self.wcs
)
return patchInfo

Expand Down

0 comments on commit 50489ba

Please sign in to comment.