Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-25 Thread Bruce Southey
Dan Yamins wrote: > > > > Then I attempt > >>>> A = numpy.rec.fromarrays(L,names = > ['Aggregates','__color__']) > > So what happens when you set the dtype here? > > > Since you have variable lengths of strings, numpy probably has guessed > incorrectly. I would also chec

Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-25 Thread Dan Yamins
> > > Then I attempt > >>>> A = numpy.rec.fromarrays(L,names = ['Aggregates','__color__']) > > So what happens when you set the dtype here? > > Since you have variable lengths of strings, numpy probably has guessed > incorrectly. I would also check that Col1 and Col2 are what you expect, > esp

Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-25 Thread Bruce Southey
Dan Yamins wrote: > Hi all, > > I'm having a seg fault error from numpy.rec.fromarrays. > > I have a python list > L = [Col1, Col2] > where Col1 and Col2 are python lists of short strings (the max length > of Col1 strings is 4 chars and max length of Col2 is 7 chars). The > len of Col1 and

Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-24 Thread Dan Yamins
> >> Can someone explain why this might be happening, and how I can fix it >> (without having to use the pickling hack)? >> > > What architecture/operating system is this? > Sorry, I should have included this information before. it's OS 10.5.6. the is a 64-bit intel core-2 duo, but the python i

Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-24 Thread Charles R Harris
2009/3/24 Dan Yamins > Hi all, > > I'm having a seg fault error from numpy.rec.fromarrays. > > I have a python list > L = [Col1, Col2] > where Col1 and Col2 are python lists of short strings (the max length of > Col1 strings is 4 chars and max length of Col2 is 7 chars). The len of Col1 > an

[Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-24 Thread Dan Yamins
Hi all, I'm having a seg fault error from numpy.rec.fromarrays. I have a python list L = [Col1, Col2] where Col1 and Col2 are python lists of short strings (the max length of Col1 strings is 4 chars and max length of Col2 is 7 chars). The len of Col1 and Col2 is about 11500. Then I attempt