From 8a0348a0269c397932e0cd6b4ba1ac344d9d472a Mon Sep 17 00:00:00 2001 From: Yusra AlSayyad Date: Mon, 17 Nov 2025 20:54:32 -0800 Subject: [PATCH] Remove psfMatchedWarps from staticSkyModelInputRefs psfMatchedWarps are not an input of AssembleCoadd. Passing them into its runQuantum confuses it into reading them all into memory. --- python/lsst/drp/tasks/assemble_coadd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/lsst/drp/tasks/assemble_coadd.py b/python/lsst/drp/tasks/assemble_coadd.py index 09ef94db..6d3e2d75 100644 --- a/python/lsst/drp/tasks/assemble_coadd.py +++ b/python/lsst/drp/tasks/assemble_coadd.py @@ -1580,6 +1580,11 @@ def _makeSupplementaryData(self, butlerQC, inputRefs, outputRefs): staticSkyModelInputRefs = copy.deepcopy(inputRefs) staticSkyModelInputRefs.inputWarps = inputRefs.psfMatchedWarps + # self.assembleStaticSkyModel is not expecting psfMatchedWarps as + # input. But in its runQuantum, ButlerQC would try to be helpful and + # read all of them in to memory. + del staticSkyModelInputRefs.psfMatchedWarps + # Because subtasks don't have connections we have to make one. # The main task's `templateCoadd` is the subtask's `coaddExposure` staticSkyModelOutputRefs = copy.deepcopy(outputRefs)