Package: python-scipy
Version: 0.18.1-2

I was running a program under the debugger pdb, and a bug generated this
message:

(Pdb) n
TypeError: TypeErro...0, 1).",)
>
/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py(212)_root_hybr()
-> shape, dtype = _check_func('fsolve', 'func', func, x0, args, n, (n,))
(Pdb)

I submit that this message is not helpful.

Eventually I found the code in minpack.py that assembled the message, and
determined that the complete message was

"fsolve: there is a mismatch between the input and output shape of the
'func' argument 'mce'.Shape should be (9,) but it is (10, 1)."

which would actually have been helpful.  It should not have been
abbreviated.

It may be appropriate to reassign this bug to pdb.

          - Jim Van Zandt

Reply via email to