Skip to content

Commit

Permalink
Ensure that source catalogs are contiguous before measurement/apcorr.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Mar 20, 2024
1 parent 433a9b6 commit de9ccae
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 @@ -557,6 +557,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 de9ccae

Please sign in to comment.