[Numpy-discussion] test_multiarray.test_clip fails on Solaris 8 system
Christopher Hanley
chanley at stsci.edu
Sun Apr 1 19:03:37 EDT 2007
Hi Stefan,
This is what I get:
>>> import sys
>>> print sys.byteorder
big
>>> import numpy as N
>>> print
N.array([1,2,3],N.dtype(N.int16).newbyteorder('<')).dtype.byteorder
<
>>> print
N.array([1,2,3],N.dtype(N.int16).newbyteorder('>')).dtype.byteorder
>
>>> print
N.array([1,2,3],N.dtype(N.int16).newbyteorder('=')).dtype.byteorder
=
>>>
Stefan van der Walt wrote:
> Hi Chris
>
> Would you please run the following commands and show their output?
>
> import sys
> print sys.byteorder
>
> import numpy as N
> print N.array([1,2,3],N.dtype(N.int16).newbyteorder('<')).dtype.byteorder
> print N.array([1,2,3],N.dtype(N.int16).newbyteorder('>')).dtype.byteorder
> print N.array([1,2,3],N.dtype(N.int16).newbyteorder('=')).dtype.byteorder
>
> Output on my little-endian system is
>
> little
> <
>
> =
>
> and I'd be curious to see if the output on a big-endian system follows
> the same pattern.
>
> I'd expect
>
> big
> <
>
> =
>
> Cheers
> Stéfan
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list