我在Word 2013中开发了代码。不幸的是,它存在一个我无法在Word 2007中解释的问题。
File "/home/ankita/Dropbox/Python/Bowman_work/min.py", line 81, in <module>
out = lf.minimize(func, params, args=(xdata, Tsky), method='leastsq', kws=None, iter_cb=None, scale_covar=True, nan_policy='omit', calc_covar=True)
File "/home/ankita/anaconda3/lib/python3.7/site-packages/lmfit-0.9.13-py3.7.egg/lmfit/minimizer.py", line 2300, in minimize
return fitter.minimize(method=method)
File "/home/ankita/anaconda3/lib/python3.7/site-packages/lmfit-0.9.13-py3.7.egg/lmfit/minimizer.py", line 1949, in minimize
return function(**kwargs)
File "/home/ankita/anaconda3/lib/python3.7/site-packages/lmfit-0.9.13-py3.7.egg/lmfit/minimizer.py", line 1492, in leastsq
lsout = scipy_leastsq(self.__residual, variables, **lskws)
File "/home/ankita/anaconda3/lib/python3.7/site-packages/scipy/optimize/minpack.py", line 394, in leastsq
gtol, maxfev, epsfcn, factor, diag)
**ValueError: The array returned by a function changed size between calls**
形状不为空,我只是在读取属性。为什么我不能在Word 2007的标题中访问文本?
有什么主意吗?
乔