Re: [Numpy-discussion] fast robus implementation of float()

2011-03-22 Thread Christopher Barker
On 3/22/11 1:54 PM, Christian K. wrote: > I wonder if someone has a good solution for a fast conversion of gridded > ascii data to ndarray. the fastest out of the box way is with np.fromfile(input_file, sep=" ", dtype=np.float) It will only read multiple lines if the separater is whitespace, but

[Numpy-discussion] fast robus implementation of float()

2011-03-22 Thread Christian K.
Hi, I wonder if someone has a good solution for a fast conversion of gridded ascii data to ndarray. It should manage ',' as decimal point (on demand) and special windows numbers as 1.#INF. Of course, this is easy to wrap in a small function but I expect it to be slow when the input size is in