* Little syntax optimization.

master
Wirawan Purwanto 12 years ago
parent 414643ecde
commit 5b213b0ee7
  1. 4
      math/fitting/__init__.py

@ -232,9 +232,7 @@ def fit_func(Funct, Data=None, Guess=None, x=None, y=None,
if outfmt == 1:
return rslt[0]
else:
rec = fit_result()
for (k, v) in zip(keys, rslt):
rec[k] = v
rec = fit_result(dict(zip(keys, rslt)))
rec['chi_square'] = chi_sqr
rec['fit_method'] = method
return rec

Loading…
Cancel
Save