Re: Efficient processing of large nuumeric data file

2008-01-19 Thread David Sanders
On Jan 18, 11:15 am, David Sanders <[EMAIL PROTECTED]> wrote: > Hi, > > I am processing large files of numerical data. Each line is either a > single (positive) integer, or a pair of positive integers, where the > second represents the number of times that the first number

Efficient processing of large nuumeric data file

2008-01-18 Thread David Sanders
Hi, I am processing large files of numerical data. Each line is either a single (positive) integer, or a pair of positive integers, where the second represents the number of times that the first number is repeated in the data -- this is to avoid generating huge raw files, since one particular num

Re: Learning Python : >>> import math doesn't work ?

2007-11-18 Thread David Sanders
On Nov 18, 8:48 pm, [EMAIL PROTECTED] wrote: > Have carefully installed Python 2.5.1 under XP in dir E:\python25 . > ran set path = %path% ; E:\python25 > Python interactive mode works fine for simple arithmetic . > Then tried >>> import math > >>> x = sqrt(100) >Get error

Re: Function to resize global numpy array interactively in ipython

2007-10-29 Thread David Sanders
On Oct 29, 11:07 am, Robert Kern <[EMAIL PROTECTED]> wrote: > David Sanders wrote: > > Hi, > > > I have a script with function definitions which I load into ipython > > for interactive use. > > These functions modify a global numpy array, whose size I need to

Function to resize global numpy array interactively in ipython

2007-10-28 Thread David Sanders
Hi, I have a script with function definitions which I load into ipython for interactive use. These functions modify a global numpy array, whose size I need to be able to change interactively. I thus have a script which looks like this: from numpy import * def do_resize(N): global a