Ahh, I believe I fixed that in http://code.astraw.com/projects/motmot/changeset/501 . Anyhow I have made a new release with this change available at http://pypi.python.org/pypi/pygarrayimage .
I believe this works with transposed C arrays (that was my test case) -- please let me know if it doesn't work. -Andrew Zachrahan wrote: > Andrew, > > I think the pygarrayimage code (at least the version I grabbed > yesterday) fails for Fortran-contiguous arrays -- at least with recent > versions, numpy.copy doesn't transform a fortran-contiguous array into > a C-contiguous one. (I think it does make a contiguous array from a > non-contiguous one, but other than that, no luck). Fortran-contiguous > arrays are pretty common, too -- taking the transpose of a C- > contiguous array just returns a "Fortran-contiguous" view onto the > same memory. > > Zach > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
