[SciPy-user] Newbie: Reading a slice of a file

Chiara Caronna chiaracaronna at hotmail.com
Mon Jan 15 12:51:55 EST 2007


I need to read just some rows of a file... do you know how to do it?
I found out that with pylab.load I can skip some rows from the top, but I 
don't know how to skip from the bottom... maybe there is an other function?
Thanks
Chiara


>From: Darren Dale <dd55 at cornell.edu>
>Reply-To: SciPy Users List <scipy-user at scipy.org>
>To: SciPy Users List <scipy-user at scipy.org>
>Subject: Re: [SciPy-user] Can SciPy compute ln(640320**3 + 744)/163**.5 
>to30 places?
>Date: Mon, 15 Jan 2007 12:19:58 -0500
>
>On Monday 15 January 2007 11:52, Dick Moores wrote:
> > That's great! Thanks!
> >
> > Now, how about something such as (5/23)**(2/7)?
> > print repr(n.exp(n.log(5/23)*2/7))
> > gets ValueError: log domain error
>
>integer division 5/23=0. The log of zero is either going to give you 
>-infinity
>or an error.
>
>Darren
>_______________________________________________
>SciPy-user mailing list
>SciPy-user at scipy.org
>http://projects.scipy.org/mailman/listinfo/scipy-user

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/




More information about the SciPy-User mailing list