utils.make_lightcurve: finished detrending