[SciPy-user] mpfit questions

Travis Oliphant oliphant.travis at ieee.org
Thu Jul 6 09:05:36 EDT 2006


Steve Schmerler wrote:
> I think the line should be
>   
> This will be a bit of work. At first you have to change the import 
> statememts in mpfit.py:
>
> ##import Numeric
> import numpy
> # you don't have to replace Numeric with numpy everywhere
> Numeric = numpy
> Numeric.Float = numpy.float64
> Numeric.Int = numpy.int64
>   

Actually, it's easier to do

import numpy.oldnumeric as Numeric

which will keep the Float and Int names (and several other things) 
backward compatible.

-Travis




More information about the SciPy-User mailing list