From 4fdfface92d92edaf36e0aeda32d08be1fd28e32 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Wed, 20 Mar 2024 14:15:59 -0700 Subject: [PATCH] Ensure that source catalogs are contiguous before measurement/apcorr. --- python/lsst/pipe/tasks/calibrate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/pipe/tasks/calibrate.py b/python/lsst/pipe/tasks/calibrate.py index 55ed853e6..b617eebb2 100644 --- a/python/lsst/pipe/tasks/calibrate.py +++ b/python/lsst/pipe/tasks/calibrate.py @@ -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,