Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-18 Thread Frank Thommen
Bruce Southey wrote: > [...] >>> It took me a while to track it down, but there used to be a module/file >>> called 'convertcode.py' for conversion. It was mentioned as tip in >>> Travis's 'Guide to Numpy' page 31 in Jan 6 2005 version. But the >>> alter_code path is in Dec 7 2006 (linked at http:

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-15 Thread Frank Thommen
Fernando Perez wrote: > On Thu, Oct 14, 2010 at 10:55 AM, Christopher Barker > wrote: >>> We are speaking of potentially several hundred files. It's part of the >>> scientific work of the user of the last nine years... >> Let's hope he's got some tests! > > Yup. I converted a very complex code

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-15 Thread Frank Thommen
Bruce Southey wrote: > On 10/14/2010 12:55 PM, Christopher Barker wrote: >> On 10/14/10 9:46 AM, Frank Thommen wrote: >>> We are speaking of potentially several hundred files. It's part of the >>> scientific work of the user of the last nine years... >> Let's hope he's got some tests! >> >>> Whi

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-15 Thread Frank Thommen
Christopher Barker wrote: > On 10/14/10 9:46 AM, Frank Thommen wrote: >> We are speaking of potentially several hundred files. It's part of the >> scientific work of the user of the last nine years... > > Let's hope he's got some tests! Yes, we can compare the outputs with the existing results o

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Fernando Perez
On Thu, Oct 14, 2010 at 10:55 AM, Christopher Barker wrote: >> We are speaking of potentially several hundred files.  It's part of the >> scientific work of the user of the last nine years... > > Let's hope he's got some tests! Yup. I converted a very complex code from Numeric to numpy years ago

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Bruce Southey
On 10/14/2010 12:55 PM, Christopher Barker wrote: > On 10/14/10 9:46 AM, Frank Thommen wrote: >> We are speaking of potentially several hundred files. It's part of the >> scientific work of the user of the last nine years... > Let's hope he's got some tests! > >> Which conversion script do you m

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Christopher Barker
On 10/14/10 9:46 AM, Frank Thommen wrote: > We are speaking of potentially several hundred files. It's part of the > scientific work of the user of the last nine years... Let's hope he's got some tests! > Which conversion script do you mean? I couldn't find any conversion > script that works or

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Frank Thommen
Christopher Barker wrote: > On 10/14/10 12:20 AM, Frank Thommen wrote: >> I'm trying to help a user to migrate from Numeric to numpy. I found >> reference to alter_code1.py on >> http://numpy.scipy.org/old_array_packages.html. > > How much code is this? We are speaking of potentially several hun

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Christopher Barker
On 10/14/10 12:20 AM, Frank Thommen wrote: > I'm trying to help a user to migrate from Numeric to numpy. I found > reference to alter_code1.py on > http://numpy.scipy.org/old_array_packages.html. How much code is this? I always just did the conversion by hand (with search and replace, of course

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Frank Thommen
Bruce Southey wrote: > On 10/14/2010 02:20 AM, Frank Thommen wrote: >> Hi, >> >> I'm trying to help a user to migrate from Numeric to numpy. I found >> reference to alter_code1.py on >> http://numpy.scipy.org/old_array_packages.html. >> >> >> [...] > Are you converting from Numeric or numarra

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Bruce Southey
On 10/14/2010 02:20 AM, Frank Thommen wrote: Hi, I'm trying to help a user to migrate from Numeric to numpy. I found reference to alter_code1.py on http://numpy.scipy.org/old_array_packages.html. First I tried the conversion script: # python2.6 /path/to/alter_code1.py test.py and alternati

[Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-14 Thread Frank Thommen
Hi, I'm trying to help a user to migrate from Numeric to numpy. I found reference to alter_code1.py on http://numpy.scipy.org/old_array_packages.html. First I tried the conversion script: # python2.6 /path/to/alter_code1.py test.py and alternatively # python2.6 /path/to/alter_code1.py ./