It seems that the speed of append_fields() in numpy.lib.recfunctions is much
slower than rec_append_fields() in matplotlib.mlab. See the following code:
import numpy as np
import matplotlib.mlab as mlab
import numpy.lib.recfunctions as nprf
import time
# Set up recarray
nr_pts = 1E6
dt = np.dtype
Derek Homeier wrote:
>
> Hi Chris,
>
> On 31 May 2011, at 13:56, cgraves wrote:
>
>> I've downloaded the latest numpy (1.6.0) and loadtxt has the ndmin
>> option,
>> however neither genfromtxt nor recfromtxt, which use loadtxt, have it.
>> Should
Ralf Gommers-2 wrote:
>
> On Fri, May 6, 2011 at 12:57 PM, Derek Homeier <
> de...@astro.physik.uni-goettingen.de> wrote:
>
>>
>> On 6 May 2011, at 07:53, Ralf Gommers wrote:
>>
>> >
>> > >> Looks okay, and I agree that it's better to fix it now. The timing
>> > >> is a bit unfortunate though,