Details
-
Type:
Improvement
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Labels:
-
Epic Link:
Description
lsst.utils.tests.TestCase.assertFloatsAlmostEqual and the various afw.images.utilsTests should probably use either numpy.testing or numpy.allclose under the hood. The latter also has an equal_nan=False option that lets them work safely on non-finite values, which our TestCase explicitly doesn't work on.
It looks like afw.images.utilsTests uses numpy.allclose at the end, but there's a lot of precursor stuff that can probably be removed with the latest numpy.allclose.
I would like to preserve somehow (maybe not in the same test method) the ability to plot differences between 2-d arrays. If we can do that (again, I don't much care how), I have no problem with the rest of this proposal.