[NumPy-Tickets] [NumPy] #2041: support multiple comment strings in loadtxt()

NumPy Trac numpy-tickets@scipy....
Wed Feb 8 10:28:53 CST 2012


#2041: support multiple comment strings in loadtxt()
-------------------------+--------------------------------------------------
 Reporter:  andreash     |       Owner:  somebody   
     Type:  enhancement  |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  numpy.core   |     Version:  1.6.1      
 Keywords:               |  
-------------------------+--------------------------------------------------
 I would like to see the following enhancement in !NumPy:

    In the numpy.loadtxt method, support passing multiple comment strings,
 perhaps as a list.

 In reality, people change dataformats quite often, and too many people
 don't care too much about the users of their data (at least in my field of
 science). So when processing large datasets, I have to deal with files
 which either have {{{#}}} or {{{*}}} as comment string. If !NumPy
 supported something like the following, I'd be happy:


 {{{
 loadtxt('myfile.txt', comments=['*','#'])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2041>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list