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

Unit test in meas deblender succeeds but throws traceback

    Details

    • Type: Story
    • Status: In Review
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: meas_deblender
    • Labels:
    • Templates:
    • Team:
      Data Release Production

      Description

      When running tests/testTicket-2871.py, the unit test will pass, but will throw the following exception. The origin for this exception should be caught and handled properly, and the test should be investigated to see if it is properly testing behavior and arriving at correct conclusions.

      sourceDeblend WARN: Unable to deblend source 2: Footprint bounding-box Box2I((-3, -3), (3, 3)) extends outside image bounding-box Box2I((0, 0), (127, 127))
      Traceback (most recent call last):
        File "/home/nate2/repos_lsst/meas_deblender/python/lsst/meas/deblender/deblend.py", line 320, in deblend
          maxTempDotProd=self.config.maxTempDotProd
        File "/home/nate2/repos_lsst/meas_deblender/python/lsst/meas/deblender/baseline.py", line 671, in deblend
          debResult = newDeblend(debPlugins, footprint, maskedImage, psf, psffwhm, filters, log, verbose, avgNoise)
        File "/home/nate2/repos_lsst/meas_deblender/python/lsst/meas/deblender/baseline.py", line 739, in newDeblend
          maxNumberOfPeaks=maxNumberOfPeaks, avgNoise=avgNoise)
        File "/home/nate2/repos_lsst/meas_deblender/python/lsst/meas/deblender/baseline.py", line 133, in __init__
          psffwhms[n], avgNoise[n], maxNumberOfPeaks, self)
        File "/home/nate2/repos_lsst/meas_deblender/python/lsst/meas/deblender/baseline.py", line 198, in __init__
          self.updateFootprintBbox()
        File "/home/nate2/repos_lsst/meas_deblender/python/lsst/meas/deblender/baseline.py", line 226, in updateFootprintBbox
          (str(self.bb), str(self.imbb)))
      ValueError: Footprint bounding-box Box2I((-3, -3), (3, 3)) extends outside image bounding-box Box2I((0, 0), (127, 127))
      sourceDeblend INFO: Deblended: of 2 sources, 2 were deblended, creating 2 children, total 4 sources
      ...
      ----------------------------------------------------------------------
      Ran 3 tests in 0.145s
       
      OK
      

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  sophiereed Sophie Reed
                  Reporter:
                  nlust Nate Lust
                  Reviewers:
                  Bob Armstrong
                  Watchers:
                  Bob Armstrong, John Swinbank, Nate Lust, Sophie Reed
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Summary Panel