Adapt to handle scipy.optimize.leastsq for scipy >= 0.8.0.
authorW. Trevor King <wking@drexel.edu>
Thu, 28 Apr 2011 11:49:26 +0000 (07:49 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 28 Apr 2011 11:49:26 +0000 (07:49 -0400)
commit67bb9b2891c9ac09a6e4f0c1776b8a448051227e
treeee7101b60035b26e4c3e0f9520ed189062599667
parent434e8c556602a9f211396f5549bcc81527f51d80
Adapt to handle scipy.optimize.leastsq for scipy >= 0.8.0.

For single-parameter fitting, leastsq() used to return the fitted
parameter as a float.  Now it returns it as a length-one array.  With
this commit, Hooke should work with either case.
hooke/plugin/polymer_fit.py
hooke/util/fit.py