[Numpy-discussion] Review of issue 825
Charles R Harris
Thu Jun 26 00:25:03 CDT 2008
On Wed, Jun 25, 2008 at 9:13 PM, Charles R Harris <email@example.com>
> On Wed, Jun 25, 2008 at 8:42 PM, Charles R Harris <
> firstname.lastname@example.org> wrote:
>> Hi Neil,
>> On Wed, Jun 25, 2008 at 2:26 PM, Neil Muller <email@example.com<drnlmuller%2Bscipy@gmail.com>>
>>> On Wed, Jun 25, 2008 at 8:46 PM, Charles R Harris
>>> <firstname.lastname@example.org> wrote:
>>> > Looks to me like the NPY_ALIGNED flag is incorrectly set. Can you check
>>> > this by printing the results of
>>> > PyArray_CHKFLAGS(ap, NPY_ALIGNED)
>>> For the test listed in the ticket, the array isn't flagged as aligned
>>> - ap->flags = NPY_CONTIGUOUS | NPY_FORTRAN | NPY_WRITEABLE
>>> I'm under the impression that NPY_ALIGNED refers to the alignment of
>>> the entire entry, though, in which case it's irrelevant here, since
>>> the problem is with the internal alignment of items within a single
>>> array entry.
>> It looks like it refers to the item. Look at VOID_getitem to see how it
>> is set item by item.
>> Can you try the attached patch?
> Oops, try this one instead. I'm not sure why the last one worked.
Seems to work, no bus errors. Etch has a problem with memmap.roundtrip
while Lenny does fine, but that looks to be some other problem.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion