Skip to content

Commit 5e7c375

Browse files
committed
Rename FITSDiff tolerance parameter to reflect changes in astropy 2.0
1 parent 2b9f126 commit 5e7c375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_arraydiff/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def write(filename, data, **kwargs):
122122
@classmethod
123123
def compare(cls, reference_file, test_file, atol=None, rtol=None):
124124
from astropy.io.fits.diff import FITSDiff
125-
diff = FITSDiff(reference_file, test_file, tolerance=rtol)
125+
diff = FITSDiff(reference_file, test_file, rtol=rtol)
126126
return diff.identical, diff.report()
127127

128128

0 commit comments

Comments
 (0)