diff --git a/indica/operators/spline_fit_easy.py b/indica/operators/spline_fit_easy.py index d514abd3..a9e1520b 100644 --- a/indica/operators/spline_fit_easy.py +++ b/indica/operators/spline_fit_easy.py @@ -29,8 +29,7 @@ def residuals(yknots): bc_type=bc_type, ) bckc = np.interp(x, xspl, spline(xspl)) - residuals = np.sqrt((y - bckc) ** 2 / err**2) - return residuals + return (y - bckc) / err yspl = xr.DataArray( np.empty((len(xspl), len(ydata.t))),