[Numpy-discussion] MaskedArray __setitem__ for Record Values
Alexander Michael
lxander.m@gmail....
Fri Feb 15 13:41:27 CST 2008
On Fri, Feb 15, 2008 at 12:59 PM, Pierre GM <pgmdevlist@gmail.com> wrote:
> Good call.
> The easiest is still to replace the line 1361 with:
> dval = narray(value, copy=False, dtype=self.dtype)
>
> The problem with the initial method was that the tuple got transformed into a
> (2,) array whose type could not be changed afterwards. With the new line, we
> directly transform value to a ndarray of the proper type.
Even better- thanks!
> Mmh. Where should I commit the fix ? Directly to the trunk ?
I hope so!
Regards,
Alex
More information about the Numpy-discussion
mailing list