def setUp(self):
        fname = pkg_resources.resource_filename(
            __name__, "test_data/test_bplogsmooth.mat")
        self.data = scipy.io.loadmat(fname)
        f0 = 1./8
        OSR = 64
        order = 8
        N = 8192
        H = ds.synthesizeNTF(order, OSR, 1, 1.5, f0)
        fB = int(np.ceil(N/(2. * OSR)))
        ftest = int(mround(f0*N + 1./3*fB))
        u = 0.5*np.sin(2*np.pi*ftest/N*np.arange(N))
        v, xn, xmax, y = ds.simulateDSM(u, H)
        spec = np.fft.fft(v*ds.ds_hann(N))/(N/4)
        X = spec[:N/2 + 1]
        self.f, self.p = ds.bplogsmooth(X, ftest, f0)
dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/tests/test_bplogsmooth.py/TestBplogsmooth.setUp/original