[Numpy-discussion] object dtype questions

2009-09-05 Thread Mark Wendell
y than above to call myMethod or access attribute1? Thanks in advance. I've been searching through the docs for examples of the use of custom python objects, but haven't found much. Mark -- -- Mark Wendell ___ NumPy-Discussion mailing l

Re: [Numpy-discussion] array is not writable

2009-08-26 Thread Mark Wendell
6, 2009 at 7:48 PM, Mark Wendell wrote: > > Hi all - I'm playing with editing image data converted from PIL objects, and > running into a situation where numpy tells me that an 'array is not > writable'. Not sure I understand what that means, or how to get around it.

[Numpy-discussion] array is not writable

2009-08-26 Thread Mark Wendell
File "", line 1, in RuntimeError: array is not writeable Any help appreciated. Thanks, Mark PIL 1.1.6 numpy 1.2.1 Ubuntu 9.04 -- -- Mark Wendell ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] list dtype?

2009-07-19 Thread Mark Wendell
st be unchanged > > (Of course, if you need to change its size and shape, you can always > instantiate a new array, initializing the "old" portion of it w/ the existing > array and filling in the rest w/ the new values.) > > DG > > --- On Sun, 7/19/09, Mar

Re: [Numpy-discussion] list dtype?

2009-07-19 Thread Mark Wendell
define a new array with that as a dtype? When I do this: a = np.array( (5,5), dtype = d) I get the error: ValueError: size of tuple must match number of fields. Any help appreciated. Thanks! Mark On Sun, Jul 19, 2009 at 2:37 PM, Robert Kern wrote: > On Sun, Jul 19, 2009 at 11:22, Mark Wendell

[Numpy-discussion] list dtype?

2009-07-19 Thread Mark Wendell
and can the length of that list vary from entry to entry in a 2D array? I hope I've explained this well enough. Thanks in advance. Mark -- -- Mark Wendell "I guess songs are just interesting things to do with the air." Tom Waits ___ N

Re: [Numpy-discussion] Selecting "column" from array of tuples

2009-07-09 Thread Mark Wendell
Make sure you send the message as plain text, rather than with rich formatting, and it should show up right away. Mark On Thu, Jul 9, 2009 at 11:18 AM, Ian Stokes-Rees wrote: > > [take 6 on sending this -- I'm subscribed to numpy-discuss, but this > post refuses to show up] > > _

[Numpy-discussion] numpy.choose question

2009-05-23 Thread Mark Wendell
my images into separate R, G, and B arrays, run them through np.choose, and then recombine the results, but that seems clunky. Any advice welcome. Thanks Mark -- -- Mark Wendell ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://ma

[Numpy-discussion] array membership test?

2009-05-05 Thread Mark Wendell
thing for ints, that would be great. thanks Mark -- -- Mark Wendell ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion