Skip to content

Commit

Permalink
Fix incorrect indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed May 31, 2024
1 parent 3972dc1 commit 16f0c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/afw/image/testUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def imagesDiffer(image0, image1, skipMask=None, rtol=1.0e-05, atol=1e-08):
errArr = np.abs(valFilledArr1 - valFilledArr2)
maxErr = errArr.max()
maxAbsInd = np.where(errArr == maxErr)
maxAbsTuple = (maxAbsInd[1][0], maxAbsInd[0][0])
maxAbsTuple = (maxAbsInd[0][0], maxAbsInd[1][0])
# NOTE: use the second image, because the numpy test is:
# (atol + rtol * absolute(b))
allcloseLimit = rtol*np.abs(valFilledArr2) + atol
Expand Down

0 comments on commit 16f0c56

Please sign in to comment.