Skip to content

Commit

Permalink
Merge pull request #908 from lsst/tickets/DM-42920
Browse files Browse the repository at this point in the history
DM-42920: Ensure that source catalogs are contiguous before measurement/apcorr.
  • Loading branch information
erykoff authored Mar 22, 2024
2 parents cfae979 + 4fdffac commit a740e07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/pipe/tasks/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ def run(self, exposure, background=None,
s.set(self.skySourceKey, True)
if self.config.doDeblend:
self.deblend.run(exposure=exposure, sources=sourceCat)
if not sourceCat.isContiguous():
sourceCat = sourceCat.copy(deep=True)
self.measurement.run(
measCat=sourceCat,
exposure=exposure,
Expand Down

0 comments on commit a740e07

Please sign in to comment.