On Friday 15 February 2008 14:41:27 Alexander Michael wrote:
> Even better- thanks!
You're welcome.
> > Mmh. Where should I commit the fix ? Directly to the trunk ?
Done.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.sci
On Fri, Feb 15, 2008 at 12:59 PM, Pierre GM <[EMAIL PROTECTED]> 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 ty
On Friday 15 February 2008 10:51:04 Alexander Michael wrote:
> >>> d = numpy.empty((5,4), dtype=[('value', float),('source', int)])
> >>> a = ma.MaskedArray(d, mask=True, fill_value=(0.0,0))
> >>> a[0,0] = (10.0, 1)
>
> numpy\ma\core.py in __setitem__(self, indx, value)
>1359 return
I am attempting to work with field dtypes (i.e. record arrays) as
MaskedArrays. I don't want to use MaskedRecords because I want the
mask to apply to the whole record since the first field is primary and
the rest are "tag along" values associated with the primary data
value. The numpy.ndarray suppo