You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The byte order of both, h and d is native. However, when
reassigning the scalar head in the recarray to h, the byte order is
not swapped and h gets wrapped around to 16777216L
(should be 1). Interestingly, the same is ok with an element of a vector (d stays 1, thus is swapped).
This behavior is the same on windows 32bit, python 2.7.4, numpy 1.6.2.
and on linux 32bit, python 2.6.6, numpy 1.4.1.
Keep up the good work and cheers,[[BR]]
Moritz
The text was updated successfully, but these errors were encountered:
I think this is comes down to the same problem as #369
I am not quite sure if this is the right way to fix the issue though, but it does seem to fix it and my guess is that it is at least the correct place to fix it...
Original ticket http://projects.scipy.org/numpy/ticket/2185 on 2012-07-14 by trac user mbyt, assigned to unknown.
Hello,
numpy seems to not swap the byte order when assigning scalars in record arrays:
The byte order of both, h and d is native. However, when
reassigning the scalar head in the recarray to h, the byte order is
not swapped and h gets wrapped around to 16777216L
(should be 1). Interestingly, the same is ok with an element of a vector (d stays 1, thus is swapped).
This behavior is the same on windows 32bit, python 2.7.4, numpy 1.6.2.
and on linux 32bit, python 2.6.6, numpy 1.4.1.
Keep up the good work and cheers,[[BR]]
Moritz
The text was updated successfully, but these errors were encountered: