[SciPy-user] mpfit questions
Jean-Francois Moulin
jf.moulin at gmail.com
Thu Jul 6 08:26:47 EDT 2006
Hi all,
I am trying to get mpfit to work and I have some questions:
0) cutting and pasting the doc example which goes like
...
m = mpfit('myfunct', p0, functkw=fa)
...
I get a "module not callable" error
I changed the call to m = mpfit.mpfit('myfunct', p0, functkw=fa)
and it seems to work (until I reach the prblem below).
1) I get this message when trying to call mpfit
File "c:\Python24\lib\site-packages\mpfit.py", line 2249, in __init__
self.maxlog = log(self.maxnum)
NameError: global name 'log' is not defined
(I did import Numeric and mpfit before my call)
2) how to have it working with numpy/scipy (rather than Numeric)
-I tried putting a from scipy import * clause in mpfit.py and remove
all refs to numeric but I get the same message as above message.
Thanks for any input
JF
More information about the SciPy-User
mailing list