Hello all!
I am a bit confused by the behaviour of mrecarray:
>>> import numpy.ma.mrecords
>>> data = [(1, 'a'), (2, 'b')]
>>> ra = numpy.rec.fromrecords(data)
>>> mra = numpy.ma.mrecords.fromrecords(data)
>>> ra
rec.array([(1, 'a'), (2, 'b')],
dtype=[('f0', '>> mra
masked_records(
f0 :
On Monday 14 July 2008 13:53:09 Michael Droettboom wrote:
> I'm running into a couple of small problems with mrecarray. I'm not
> sure if they're bugs or a usage error.
Bugs are my bet. I'll check that.
The first one might be problematic, as it probable comes from ma.core.
The second one is most
I'm running into a couple of small problems with mrecarray. I'm not
sure if they're bugs or a usage error.
First, the constructor throws an exception when the format string
contains nested arrays (if that is the proper term) such as "(2,2)f8".
This creates a three-element tuple in the dtype.