oliphant.travis at ieee.org
Fri Aug 18 13:21:05 CDT 2006
Chris Kees wrote:
> I just ran convertcode.py on my code (from the latest svn source
> of numpy) and it looks like it just changed the import statements to
> import numpy.oldnumeric as Numeric
> So it doesn't look like it's really helping me move over to the
> new usage. Is there a script that will converts code to use the
> new numpy as it's intended to be used?
Not yet. The transition approach is to use the compatibility layer
first by running oldnumeric.alter_code1.py and then running
alter_code2.py which will take you from the compatibility layer to NumPy
(but alter_code2 is not completed yet).
The description of what these codes do is in the latest version of the
second chapter of my book (which is part of the preview chapters that
are available on the web).
More information about the Numpy-discussion