tags 681270 +moreinfo thanks Yaroslav Halchenko wrote:
Please see attached a somewhat minimalistic code to reproduce the problem.it fails only on s390x -- fine on s390 and any other architecture/port where pymvpa2 was just built. Traceback (most recent call last): File "scipy-fx-failure2.py", line 65, in<module> 1.47441522, 1.78073152, 2.08704783, 2.39336413, 2.69968044])) File "scipy-fx-failure2.py", line 52, in least_sq_fit return leastsq(efx, params) File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 324, in leastsq raise errors[info][1](errors[info][0]) TypeError: Improper input parameters.
Does it occur when dual_gaussian returns np.nan? I'd help if you could attach the full output of your script and also print err in efx.
It is not clear to me why this is a bug in scipy. This exception comes from MINPACK's lmdif FORTRAN routine directly. It is often triggered when the objective function returns an array with wrong dimensions.
-- Denis Laxalde
<<attachment: denis.vcf>>