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

validate_drp_gen3 test failure in TEXUtilTest.test_correlation_function_ellipticity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: DM Subsystem Science, faro
    • Labels:
      None

      Description

      Jenkins is seeing a failure: https://ci.lsst.codes/blue/organizations/jenkins/sqre%2Fvalidate_drp_gen3/detail/validate_drp_gen3/118/pipeline

      self = <test_tex_util.TEXUtilTest testMethod=test_correlation_function_ellipticity>
       
          def test_correlation_function_ellipticity(self):
              """Test correlation function calculation."""
              expected_r = 4.44568063*u.arcmin
              expected_xip = 0.00075123
              expected_xip_err = 0.00053537
          
              cat = self.load_data()
              matches = GroupView.build(cat)
       
              ra = matches.aggregate(averageRaFromCat) * u.radian
              dec = matches.aggregate(averageDecFromCat) * u.radian
          
              e1_res = matches.aggregate(medianEllipticity1ResidualsFromCat)
              e2_res = matches.aggregate(medianEllipticity2ResidualsFromCat)
          
              result = correlation_function_ellipticity(ra, dec, e1_res, e2_res)
      >       self.assertTrue(u.isclose(np.mean(result[0]), expected_r))
      E       AssertionError: False is not true
       
      tests/test_tex_util.py:70: AssertionError
      

      If you can use lsst.utils, it would be preferable to use assertFloatsAlmostEqual in order to get more useful output from this assertion failure. See https://pipelines.lsst.io/v/weekly/py-api/lsst.utils.tests.TestCase.html#lsst.utils.tests.TestCase.assertFloatsAlmostEqual

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ktl Kian-Tat Lim
            Watchers:
            Keith Bechtol, Kian-Tat Lim, Simon Krughoff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: