[Tutor] problem with saving data in a text file

eryksun eryksun at gmail.com
Wed Apr 24 10:22:38 CEST 2013


On Wed, Apr 24, 2013 at 12:12 AM, Debashish Saha <silideba at gmail.com> wrote:
>
> --> 168             exec compile(scripttext, filename, 'exec') in glob, loc

This part of the traceback is from IPython. It would help if you ran
your script in the console using just python.exe, and provide the
complete traceback.

> --> 193 np.savetxt(f, np.array([t, Am_cor(t)]).T)
>
> error: First argument must be a callable function.

The above error is probably from SciPy interpolate (fitpack.error),
integrate (quadpack.error), or optimize (minpack.error) -- and looks
to be raised in Am_cor(t).

Example error:

    >>> integrate._quadpack._qagie('not a callable', 1.0, 1)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    quadpack.error: First argument must be a callable function.


More information about the Tutor mailing list