-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Alignment doesn't work for array of structs (Trac #2211) #663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's definitely not aligned, although I'm not sure it needs to be all on 4 byte boundaries. Still present in 1.9-devel. |
same bug as #5224. It is because |
Hi.
#PASSED
#FAILED |
Eventually it should be fixed. I'm not going to work on it until some other PRs get through though, so it's currently up for grabs. By the way, a workaround is to use the "dict" form of specification instead of the "tuple" form, as that respects "align". |
Also use dict for dtype definition because list format ignores alignment. See numpy/numpy#663
Also use dict for dtype definition because list format ignores alignment. See numpy/numpy#663
…f converting from tuple descr
Fixes #663: fixed dtype alignment for array of structs in case of converting from tuple descr
Original ticket http://projects.scipy.org/numpy/ticket/2211 on 2012-09-05 by trac user Ihor.Melnyk, assigned to unknown.
array of subtype alignment
actual dtype
expected dtype
The text was updated successfully, but these errors were encountered: