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

Use numpy allclose in utils.tests and afw.image.tests and support NaNs

    Details

      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.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  Parejkoj John Parejko
                  Watchers:
                  Jim Bosch, John Parejko, Pim Schellart [X] (Inactive), Russell Owen, Simon Krughoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Summary Panel