Re: [Numpy-discussion] Problem with loadtxt

2010-08-18 Thread Scott MacDonald
com> wrote: > 2010/8/18 Scott MacDonald : > > In [42]: c = StringIO("5399354557888517120") > > Well, should't it be StringIO("5399354557888517312")? Maybe I'm missing > sth. > > Friedrich > ___ >

Re: [Numpy-discussion] Problem with loadtxt

2010-08-17 Thread Scott MacDonald
ue, Aug 17, 2010 at 5:13 PM, Warren Weckesser < warren.weckes...@enthought.com> wrote: > Scott MacDonald wrote: > > Hi, > > > > I have a text file called 'blah' that contains only the following line: > > > > 5399354557888517312,5399354557888517312 > &

[Numpy-discussion] Problem with loadtxt

2010-08-17 Thread Scott MacDonald
Hi, I have a text file called 'blah' that contains only the following line: 5399354557888517312,5399354557888517312 I want to load these into a numpy array as unit64's. The following script demonstrates my problem: import numpy as np with open('blah', 'r') as f: x = np.loadtxt(f, delimite