Skip to content

Commit

Permalink
Update to numpy new newbyteorder
Browse files Browse the repository at this point in the history
  • Loading branch information
roceb committed Jan 24, 2025
1 parent 58dc6c1 commit 9f3b4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_imageIo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def doRoundTrip(self, image, compression=None, scaling=None):
with astropy.io.fits.open(filename) as hduList:
hdu = hduList[1 if isCompressed else 0]
if hdu.data.dtype.byteorder != '=':
hdu.data = hdu.data.byteswap().newbyteorder()
hdu.data = hdu.data.byteswap().dtype.newbyteorder()
return readImage, hdu

def runRoundTripTest(self, cls, compression=None, scaling=None, addNaN=False, checkAstropy=True, rtol=0):
Expand Down

0 comments on commit 9f3b4f7

Please sign in to comment.