29 Apr
2009
29 Apr
'09
5:55 p.m.
Hi Zach, Zachary Pincus schrieb:
According to http://www.pygtk.org/pygtk2reference/class- gdkpixbuf.html , the pixels_array is a numeric python array (a predecessor to numpy). The upshot is that perhaps the nice broadcasting machinery will work fine:
pb_pixels[...] = fits_pixels[..., numpy.newaxis]
Ayyyyyyyyyyyyyyyy! *jump* That does what I want so fast that my current implementation can't even measure it. You're a genius! Thanks so much! Kind regards, Johannes