Re: [Numpy-discussion] genloadtxt: second serving

2008-12-05 Thread Manuel Metz
Pierre GM wrote: > On Dec 4, 2008, at 7:22 AM, Manuel Metz wrote: >> Will loadtxt in that case remain as is? Or will the _faulttolerantconv >> class be used? > > No idea, we need to discuss it. There's a problem with > _faulttolerantconv: using np.nan as default value will not work in > Python

Re: [Numpy-discussion] genloadtxt: second serving

2008-12-04 Thread Jarrod Millman
I am not familiar with this, but it looks quite useful: http://www.stecf.org/software/PYTHONtools/astroasciidata/ or (http://www.scipy.org/AstroAsciiData) "Within the AstroAsciiData project we envision a module which can be used to work on all kinds of ASCII tables. The module provides a convenien

Re: [Numpy-discussion] genloadtxt: second serving

2008-12-04 Thread Ryan May
Pierre GM wrote: > All, > Here's the second round of genloadtxt. That's a tad cleaner version than > the previous one, where I tried to take into account the different > comments and suggestions that were posted. So, tabs should be supported > and explicit whitespaces are not collapsed. Looks

Re: [Numpy-discussion] genloadtxt: second serving

2008-12-04 Thread Pierre GM
On Dec 4, 2008, at 7:22 AM, Manuel Metz wrote: > > Will loadtxt in that case remain as is? Or will the _faulttolerantconv > class be used? No idea, we need to discuss it. There's a problem with _faulttolerantconv: using np.nan as default value will not work in Python2.6 if the output is to be

Re: [Numpy-discussion] genloadtxt: second serving

2008-12-04 Thread Manuel Metz
Pierre GM wrote: > All, > Here's the second round of genloadtxt. That's a tad cleaner version than > the previous one, where I tried to take into account the different > comments and suggestions that were posted. So, tabs should be supported > and explicit whitespaces are not collapsed. > FYI,

[Numpy-discussion] genloadtxt: second serving (tests)

2008-12-04 Thread Pierre GM
And now for the tests: # pylint disable-msg=E1101, W0212, W0621 import numpy as np import numpy.ma as ma from numpy.ma.testutils import * from StringIO import StringIO from _preview import * class TestLineSplitter(TestCase): "Tests the LineSplitter class." # def test_no_delimite

[Numpy-discussion] genloadtxt: second serving

2008-12-04 Thread Pierre GM
All, Here's the second round of genloadtxt. That's a tad cleaner version than the previous one, where I tried to take into account the different comments and suggestions that were posted. So, tabs should be supported and explicit whitespaces are not collapsed. FYI, in the __main__ section,