[Numpy-discussion] fromstring, tostring slow?

Mark Janikas mjanikas@esri....
Tue Feb 13 18:02:10 CST 2007


Yes, but does the code have the same license as NumPy?  As I work for a software company, where I help with the scripting interface, I must make sure everything I use is cited and has the appropriate license.  

MJ  

-----Original Message-----
From: numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of Stefan van der Walt
Sent: Tuesday, February 13, 2007 3:52 PM
To: numpy-discussion@scipy.org
Subject: Re: [Numpy-discussion] fromstring, tostring slow?

On Tue, Feb 13, 2007 at 03:44:37PM -0800, Mark Janikas wrote:
> I don't think I can do that because I have heterogeneous rows of
> data.... I.e. the columns in each row are different in length.
> Furthermore, when reading it back in, I want to read only bytes of the
> info at a time so I can save memory.  In this case, I only want to have
> one record in mem at once.
> 
> Another issue has arisen from taking this routine cross-platform....
> namely, if I write the file on Windows I cant read it on Solaris.  I
> assume the big-little endian is at hand here.

Indeed.  You may want to take a look at npfile, the new IO module in
scipy written by Matthew Brett (you don't have to install the whole
scipy to use it, just grab the file).

Cheers
Stéfan


_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion



More information about the Numpy-discussion mailing list