* 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: if outfmt == 1:
return rslt[0] return rslt[0]
else: else:
rec = fit_result() rec = fit_result(dict(zip(keys, rslt)))
for (k, v) in zip(keys, rslt):
rec[k] = v
rec['chi_square'] = chi_sqr rec['chi_square'] = chi_sqr
rec['fit_method'] = method rec['fit_method'] = method
return rec return rec

Loading…
Cancel
Save