On Oct 27, 2009, at 2:37 PM, Piter_ wrote:

> Hi all.
> I have a problem with loading file of following format:
> first 1024 rows are tab delimited and contain from 2 to 256 elements  
> (in different files different number of columns)
> after that 5 empty lines
> and at the end  some 20 text lines for description.

With a recent SVN version of numpy, you can use the `skip_header` and  
`skip_footer` arguments of np.genfromtxt to skip lines at the  
beginning and the end of your file. In your case, you'd use  
`skip_header=0` and `skip_footer=5+20`
P.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to