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

meas_base GaussianFluxTestCase.testGaussians test failure

    Details

    • Type: Story
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: meas_base
    • Labels:
      None
    • Templates:
    • Team:
      Data Release Production

      Description

      =================================== FAILURES ===================================
      ______________________ GaussianFluxTestCase.testGaussians ______________________
      [gw29] linux2 -- Python 2.7.12 /home/lsstsw/jenkins/release/lsstsw/miniconda/bin/python
       
      self = <test_GaussianFlux.GaussianFluxTestCase testMethod=testGaussians>
       
          def testGaussians(self):
              """Test that we get correct fluxes when measuring Gaussians with known positions and shapes."""
              task = self.makeSingleFrameMeasurementTask("base_GaussianFlux")
              exposure, catalog = self.dataset.realize(10.0, task.schema)
              task.run(catalog, exposure)
              for measRecord in catalog:
                  self.assertFloatsAlmostEqual(measRecord.get("base_GaussianFlux_flux"),
      >                                        measRecord.get("truth_flux"), rtol=3E-3)
       
      tests/test_GaussianFlux.py:67: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      ../../stack/Linux64/utils/13.0-8-gb7ca535+1/python/lsst/utils/tests.py:618: in assertFloatsAlmostEqual
          testCase.assertFalse(failed, msg="
      ".join(errMsg))
      E   AssertionError: 99669.5145146 != 100000.0; diff=330.485485371/100000.0=0.00330485485371 with rtol=0.003, atol=2.22044604925e-16
      ----------------------------- Captured stdout call -----------------------------
      measurement INFO: Measuring 2 sources (2 parents, 0 children) 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jhoblitt Joshua Hoblitt
                Watchers:
                John Swinbank, Joshua Hoblitt, Kian-Tat Lim, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel