22 import lsst.pex.config
28 """Simple select images task that just returns all the objects we simulated.
31 ConfigClass = lsst.pex.config.Config
33 def runDataRef(self, dataRef, coordList, makeDataRefList=True, selectDataList=[]):
34 observations = dataRef.butlerSubset.butler.get(
"observations", tract=dataRef.dataId[
"tract"])
35 assert(makeDataRefList)
36 butler = dataRef.butlerSubset.butler
37 visitKey = observations.getSchema().find(
"visit").key
38 ccdKey = observations.getSchema().find(
"ccd").key
40 for record
in observations:
41 dataId = {
"visit": record.getI(visitKey),
"ccd": record.getI(ccdKey)}
42 dataRefList.append(butler.dataRef(datasetType=
"calexp", dataId=dataId))