This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Error from Scipy

By: a guest on Jan 2nd, 2013  |  syntax: None  |  size: 1.14 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Traceback (most recent call last):
  2.   File "current_to_dac.py", line 88, in <module>
  3.     main()
  4.   File "current_to_dac.py", line 76, in main
  5.     curveList.append([timeStamp, op.curve_fit(logCurve, list(windowCurrent), list(windowVoltage))])
  6.   File "/Library/Python/2.7/site-packages/scipy-0.12.0.dev_d631749_20121222-py2.7-macosx-10.8-intel.egg/scipy/optimize/minpack.py", line 506, in curve_fit
  7.     res = leastsq(func, p0, args=args, full_output=1, **kw)
  8.   File "/Library/Python/2.7/site-packages/scipy-0.12.0.dev_d631749_20121222-py2.7-macosx-10.8-intel.egg/scipy/optimize/minpack.py", line 348, in leastsq
  9.     m = _check_func('leastsq', 'func', func, x0, args, n)[0]
  10.   File "/Library/Python/2.7/site-packages/scipy-0.12.0.dev_d631749_20121222-py2.7-macosx-10.8-intel.egg/scipy/optimize/minpack.py", line 14, in _check_func
  11.     res = atleast_1d(thefunc(*((x0[:numinputs],) + args)))
  12.   File "/Library/Python/2.7/site-packages/scipy-0.12.0.dev_d631749_20121222-py2.7-macosx-10.8-intel.egg/scipy/optimize/minpack.py", line 418, in _general_function
  13.     return function(xdata, *params) - ydata
  14. TypeError: unsupported operand type(s) for -: 'list' and 'list'
clone this paste RAW Paste Data