[SciPy-user] about MLab
Wed Nov 7 18:49:13 CST 2007
On 11/4/07, Travis E. Oliphant <firstname.lastname@example.org> wrote:
> linda.s wrote:
> > I have quite a few codes written in Numeric.
> > MLab comes with Numeric too.
> > I got confused when I began to use numpy because it does not have MLab
> > and does not have some same functions in Numeric.
> > is there any smooth way to change the code developed in Numeric to numpy?
> You should also read the first chapters of the book "Guide to NumPy"
> which are available on-line for immediate download. There is a
> comprehensive description of the differences between Numeric and NumPy
> as well as tips for compatibility.
> You must also import numpy.oldnumeric before it is available.
> import numpy.oldnumeric
> You will notice that the module is simple a re-naming module. All of
> the functionality is in numpy but under possibly different names.
> All functions in Numeric are available in NumPy (as far as I know). If
> you encounter a situation where that is not true, please let me know.
I still have the problem such as:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'oldnumeric'
I use Mac machine and did download and install Scipy...
More information about the SciPy-user