File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -747,12 +747,9 @@ def safezip(*args):
747747def safe_masked_invalid (x , copy = False ):
748748 x = np .array (x , subok = True , copy = copy )
749749 if not x .dtype .isnative :
750- # Note that the argument to `byteswap` is 'inplace',
751- # thus if we have already made a copy, do the byteswap in
752- # place, else make a copy with the byte order swapped.
753- # Be explicit that we are swapping the byte order of the dtype
754- x = x .byteswap (copy ).newbyteorder ('S' )
755-
750+ # If we have already made a copy, do the byteswap in place, else make a
751+ # copy with the byte order swapped.
752+ x = x .byteswap (inplace = copy ).newbyteorder ('N' ) # Swap to native order.
756753 try :
757754 xm = np .ma .masked_invalid (x , copy = False )
758755 xm .shrink_mask ()
You can’t perform that action at this time.
0 commit comments