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
{{ message }}
Repository navigation
Alignment doesn't work for array of structs (Trac #2211) #663
Hi.
I am wondering whether you plan to fix this bug?
This fix is very important for our project because we use c++ python extension for high performance computations,, so numpy arrays allocated in python, should be compatible with usual c++ structs.
And we have to build and patch numpy for every new version.
Activity
charris commentedon Feb 18, 2014
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.
ahaldane commentedon Sep 23, 2015
same bug as #5224. It is because
dtypeconstructor ignores thealignkeyword for 'list of tuples' style of specification.ihormelnyk commentedon Oct 30, 2016
Hi.
I am wondering whether you plan to fix this bug?
This fix is very important for our project because we use c++ python extension for high performance computations,, so numpy arrays allocated in python, should be compatible with usual c++ structs.
And we have to build and patch numpy for every new version.
#PASSED
#FAILED
ahaldane commentedon Oct 31, 2016
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".
TST: Explicity align data records in test_byte_offset()
TST: Explicity align data records in test_byte_offset()
Merge pull request #10923 from ihormelnyk/master