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
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.
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
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
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
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
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]
>
>
_
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
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