Skip to content

Commit

Permalink
Merge pull request #156 from lsst/tickets/DM-35331-hotfix
Browse files Browse the repository at this point in the history
DM-35331-hotfix: Make outputBBoxSizes an array of dtype int
  • Loading branch information
arunkannawadi committed Aug 4, 2022
2 parents 6a4f05e + 11ed1a1 commit 55d4260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/ap/association/transformDiaSourceCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def computeBBoxSizes(self, inputCatalog):
outputBBoxSizes : `np.ndarray`, (N,)
Array of bbox sizes.
"""
outputBBoxSizes = np.empty(len(inputCatalog))
outputBBoxSizes = np.zeros(len(inputCatalog), dtype=int)
for i, record in enumerate(inputCatalog):
footprintBBox = record.getFootprint().getBBox()
# Compute twice the size of the largest dimension of the footprint
Expand Down

0 comments on commit 55d4260

Please sign in to comment.