if binning == 'theta':
                    popt, pcov = curve_fit(
                        self.sigmoid, Redge[cond], h[cond], p0=p0)