281 def build_catexps(self, butlerQC, inputRefs, inputs) -> list[CatalogExposureInputs]:
282 id_tp = self.config.idGenerator.apply(butlerQC.quantum.dataId).catalog_id
284 input_refs_objs = [(getattr(inputRefs, key), inputs[key])
285 for key
in (
"cats_meas",
"coadds",
"models_psf")]
286 cats, exps, models_psf = [
287 {dRef.dataId: obj
for dRef, obj
in zip(refs, objs)}
288 for refs, objs
in input_refs_objs
290 dataIds = set(cats).union(set(exps))
291 models_scarlet = inputs[
"models_scarlet"]
293 for dataId
in dataIds:
294 catalog = cats[dataId]
295 exposure = exps[dataId]
296 updateCatalogFootprints(
297 modelData=models_scarlet,
300 imageForRedistribution=exposure,
301 removeScarletData=
True,
302 updateFluxColumns=
False,
305 catalog=catalog, exposure=exposure, table_psf_fits=models_psf[dataId],
306 dataId=dataId, id_tract_patch=id_tp,
308 catexps = [catexps[band]
for band
in self.config.get_band_sets()[0]]