Details
-
Type:
Bug
-
Status: To Do
-
Resolution: Unresolved
-
Fix Version/s: None
-
Component/s: DM Subsystem Science, faro
-
Labels:None
-
Epic Link:
-
Team:DM Science
-
Urgent?:No
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