Adjust fit-parameter handling for the polymer_fit plugin.
authorW. Trevor King <wking@drexel.edu>
Thu, 28 Apr 2011 16:30:10 +0000 (12:30 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 28 Apr 2011 16:30:10 +0000 (12:30 -0400)
This should have happened during

changeset:   820:b0d23a0bdaf7
branch:      wtk
user:        W. Trevor King <wking@drexel.edu>
date:        Thu Apr 28 07:49:26 2011 -0400
summary:     Adapt to handle scipy.optimize.leastsq for scipy >= 0.8.0.

hooke/plugin/polymer_fit.py

index 4447ca76e21571aac8f5623554e7f26bfc55493d..a4b65074bcd3e5ef57edb9e8b0e12941ab794a35 100644 (file)
@@ -989,7 +989,6 @@ Indicies of points bounding the selected data.
         queue = Queue()
         params = model.fit(outqueue=queue)
         if True:  # TODO: if Kuhn length fixed
-            params = [params]
             a = info['Kuhn length (m)']
         else:
             a = params[1]
@@ -1016,7 +1015,6 @@ Indicies of points bounding the selected data.
         queue = Queue()
         params = model.fit(outqueue=queue)
         if True:  # TODO: if Kuhn length fixed
-            params = [params]
             a = info['Kuhn length (m)']
         else:
             a = params[1]
@@ -1042,7 +1040,6 @@ Indicies of points bounding the selected data.
         queue = Queue()
         params = model.fit(outqueue=queue)
         if True:  # TODO: if persistence length fixed
-            params = [params]
             p = info['persistence length (m)']
         else:
             p = params[1]