fix endianness code
This commit is contained in:
parent
d3ba090b1a
commit
d2e6af03d1
1 changed files with 2 additions and 2 deletions
|
|
@ -15,9 +15,9 @@ except:
|
|||
from numpy.lib.format import dtype_to_descr
|
||||
|
||||
def ulab_dtype_to_descr(dtype):
|
||||
desc = '<'
|
||||
desc = '>'
|
||||
if sys.byteorder == 'little':
|
||||
desc = '>'
|
||||
desc = '<'
|
||||
|
||||
if dtype == ord('B'):
|
||||
desc = desc + 'u1'
|
||||
|
|
|
|||
Loading…
Reference in a new issue