[Numpy-discussion] greedy loadtxt
Thu Mar 27 14:05:00 CDT 2008
Thank you all.
The problem with fromfile() is that it doesn't know anything about ndarrays.
If my file is a table of ncols and nrows, fromfile() will give me a 1darray
with nrows*ncols elements, while loadtxt() will give me a 2dmatrix nrows x
ncols. In other words, I loose the "shape" of the table.
On Thu, Mar 27, 2008 at 7:59 PM, Christopher Barker <Chris.Barker@noaa.gov>
> Alan G Isaac wrote:
> > I believe Robert fixed this;
> > update from the SVN repository.
> lorenzo bolla wrote:
> > Should I use numpy.fromfile, instead?
> You can also do that. If fromfile() supports your data format, it will
> be much faster.
> Christopher Barker, Ph.D.
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
> Numpy-discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion