A version of lsst.pipe.base.DataIdContainer specialized for assembleCoadd.
Definition at line 559 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddDataIdContainer.makeDataRefList |
( |
|
self, |
|
|
|
namespace |
|
) |
| |
Make self.refList from self.idList.
Interpret the config.doMatchBackgrounds, config.autoReference,
and whether a visit/run supplied.
If a visit/run is supplied, config.autoReference is automatically set to False.
if config.doMatchBackgrounds == false, then a visit/run will be ignored if accidentally supplied.
Definition at line 562 of file assembleCoadd.py.
564 """Make self.refList from self.idList.
566 Interpret the config.doMatchBackgrounds, config.autoReference,
567 and whether a visit/run supplied.
568 If a visit/run is supplied, config.autoReference is automatically set to False.
569 if config.doMatchBackgrounds == false, then a visit/run will be ignored if accidentally supplied.
572 keysCoadd = namespace.butler.getKeys(datasetType=namespace.config.coaddName +
"Coadd",
574 keysCoaddTempExp = namespace.butler.getKeys(datasetType=namespace.config.coaddName +
"Coadd_tempExp",
577 if namespace.config.doMatchBackgrounds:
578 if namespace.config.autoReference:
579 datasetType = namespace.config.coaddName +
"Coadd"
580 validKeys = keysCoadd
582 datasetType = namespace.config.coaddName +
"Coadd_tempExp"
583 validKeys = keysCoaddTempExp
585 datasetType = namespace.config.coaddName +
"Coadd"
586 validKeys = keysCoadd
588 for dataId
in self.idList:
590 for key
in validKeys:
591 if key
not in dataId:
592 raise RuntimeError(
"--id must include " + key)
595 if (key
not in keysCoadd)
and (key
in keysCoaddTempExp):
596 if namespace.config.autoReference:
598 namespace.config.autoReference =
False
599 datasetType = namespace.config.coaddName +
"Coadd_tempExp"
600 print "Switching config.autoReference to False; applies only to background Matching."
603 dataRef = namespace.butler.dataRef(
604 datasetType = datasetType,
607 self.refList.append(dataRef)
The documentation for this class was generated from the following file:
- /home/lsstsw/stack/Linux64/pipe_tasks/11.0-2-g818369d/python/lsst/pipe/tasks/assembleCoadd.py