def fix_byteorder(arr):
    if sys.byteorder == 'little':
        arr.byteswap()
    return arr
Fixes the byte order of the array (assuming it was read
dataset/ETHPy150Open psd-tools/psd-tools/src/psd_tools/utils.py/fix_byteorder