Project: datamanagement
Issue DM-6886: forcedPhotCoadd.py fails on CFHT data due to a CModel bug
Hello, forcedPhotCoadd fails while running on CFHT data due to a CModel bug. Here is an example on the error message that we get: {code} python: src/CModel.cc:1368: void lsst::meas::modelfit::CModelAlgorithm::measure(lsst::afw::table::SourceRecord&, const lsst::afw::image::Exposure&, const lsst::afw::table::SourceRecord&) const: Assertion `measRecord.getFootprint()->getArea()' failed. Aborted {code} Adding the following lines in cmodel.py (in CModelForcedPlugin.measure, before the call to self.algorithm.measure) allows to go around the problem for the time being, which seems to arise for null value of the number of pixel in a given footprint: {code} if not measRecord.getFootprint().getArea(): raise ValueError("measRecord.getFootprint().getArea(): 0. No pixel in this footprint.") {code}
Story points: 1