Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-6886

forcedPhotCoadd.py fails on CFHT data due to a CModel bug

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: meas_modelfit
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Epic Link:
    • Sprint:
      DRP F16-2
    • Team:
      Data Release Production

      Description

      Hello,

      forcedPhotCoadd fails while running on CFHT data due to a CModel bug. Here is an example on the error message that we get:

      python: src/CModel.cc:1368: void lsst::meas::modelfit::CModelAlgorithm::measure(lsst::afw::table::SourceRecord&, const lsst::afw::image::Exposure<float>&, const lsst::afw::table::SourceRecord&) const: Assertion `measRecord.getFootprint()->getArea()' failed.
      Aborted
      

      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:

      if not measRecord.getFootprint().getArea():
          raise ValueError("measRecord.getFootprint().getArea(): 0. No pixel in this footprint.")
      

        Attachments

          Activity

            People

            • Assignee:
              jbosch Jim Bosch
              Reporter:
              nchotard Nicolas Chotard
              Reviewers:
              Lauren MacArthur
              Watchers:
              Dominique Boutigny, Jim Bosch, John Swinbank, Lauren MacArthur, Nicolas Chotard
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel