On 4/6/07, Eric Firing <[EMAIL PROTECTED]> wrote:

> I have fixed this in two ways: by raising an exception in _image.cpp if
> the input to frombyte lacks 3 dimensions--this prevents the
> segfault--and by checking uint8 arrays for 3 dimensions in image.py
> before sending them to frombyte in the first place.
>
> The problem cropped up recently because of another change I made.
> cm.ScalarMappable.set_array had been making all float arrays float32,
> and all int arrays int16.  This was causing problems with int32 arrays,
>   of course, and I could not figure out any reason why it was needed, so
> I eliminated it.  (I think I put that conversion in in the first place a
> long time ago; presumably I had a reason, and I hope I am correct that
> if it ever was necessary, it no longer is.  The backend_driver tests are
> happy with the present state of affairs.)

Many thanks, Eric.  Greatly appreciated.

Not only does the toy code work, but the real codes where I originally
got the segfaults are working fine as well, so what ever you did was
good.

Regards,

f

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to