Skip to content

Commit 0406cd6

Browse files
committed
Merge branch 'tickets/DM-42157'
2 parents 0a519c7 + 92c1e99 commit 0406cd6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

python/lsst/pipe/tasks/fit_coadd_multiband.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import lsst.pipe.base as pipeBase
3434
import lsst.pipe.base.connectionTypes as cT
3535

36-
import astropy
36+
import astropy.table
3737
from abc import ABC, abstractmethod
3838
from pydantic import Field
3939
from pydantic.dataclasses import dataclass
@@ -276,8 +276,7 @@ def __init__(self, initInputs, **kwargs):
276276
super().__init__(initInputs=initInputs, **kwargs)
277277
self.makeSubtask("fit_coadd_multiband")
278278

279-
def runQuantum(self, butlerQC, inputRefs, outputRefs):
280-
inputs = butlerQC.get(inputRefs)
279+
def build_catexps(self, butlerQC, inputRefs, inputs) -> list[CatalogExposureInputs]:
281280
id_tp = self.config.idGenerator.apply(butlerQC.quantum.dataId).catalog_id
282281
# This is a roundabout way of ensuring all inputs get sorted and matched
283282
input_refs_objs = [(getattr(inputRefs, key), inputs[key])
@@ -305,6 +304,11 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):
305304
dataId=dataId, id_tract_patch=id_tp,
306305
)
307306
catexps = [catexps[band] for band in self.config.get_band_sets()[0]]
307+
return catexps
308+
309+
def runQuantum(self, butlerQC, inputRefs, outputRefs):
310+
inputs = butlerQC.get(inputRefs)
311+
catexps = self.build_catexps(butlerQC, inputRefs, inputs)
308312
outputs = self.run(catexps=catexps, cat_ref=inputs['cat_ref'])
309313
butlerQC.put(outputs, outputRefs)
310314

0 commit comments

Comments
 (0)