Skip to content

Commit

Permalink
assertAllClose->assertFloatsAlmostEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Apr 6, 2017
1 parent 30beea4 commit 26a2771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testCoadds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#
# LSST Data Management System
# Copyright 2008-2015 AURA/LSST.
# Copyright 2008-2017 AURA/LSST.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
Expand Down Expand Up @@ -372,7 +372,7 @@ def testCoaddPsf(self, tract=0):
residuals = lsst.afw.image.ImageD(starImage, True)
residuals -= psfImage

self.assertClose(starImage.getArray(), psfImage.getArray(), rtol=1E-3, atol=1E-2)
self.assertFloatsAlmostEqual(starImage.getArray(), psfImage.getArray(), rtol=1E-3, atol=1E-2)
nTested += 1
if nTested == 0:
print("WARNING: CoaddPsf test inconclusive (this can occur randomly, but very rarely; "
Expand Down

0 comments on commit 26a2771

Please sign in to comment.