Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed May 28, 2015
1 parent a9b52a0 commit 91591b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fretbursts/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ def _exp_fit_generic(ph, fit_fun, tail_min_us=None, tail_min_p=0.1,
tail_min = dph.max()*tail_min_p
else:
tail_min = tail_min_us*1e-6/clk_p
Lambda, residuals, x_residuals, s_size = fit_fun(
dph, s_min=tail_min, calc_residuals=error_metrics is not None)

res = fit_fun(dph, s_min=tail_min, calc_residuals=error_metrics is not None)
Lambda, residuals, x_residuals, s_size = res

error = _compute_error(residuals, x_residuals, error_metrics)
Lambda /= clk_p
return Lambda, error
Expand Down

0 comments on commit 91591b1

Please sign in to comment.