def setUp(self):
     schema = afwTable.SourceTable.makeMinimalSchema()
     schema.addField("test_flux", type=float)
     schema.addField("test_fluxSigma", type=float)
     self.sourceSelector = ipDiffim.DiaCatalogSourceSelectorTask()
     for flag in self.sourceSelector.config.badFlags:
         schema.addField(flag, type="Flag")
     table = afwTable.SourceTable.make(schema)
     table.definePsfFlux("test")
     self.srcCat = afwTable.SourceCatalog(table)
     self.exposure = afwImage.ExposureF()
Esempio n. 2
0
 def setUp(self):
     self.sourceSelector = ipDiffim.DiaCatalogSourceSelectorTask()
     self.exposure = afwImage.ExposureF()