def generate_xy_sample(self, n):
        # This routine generates numpy arrays and corresponding masked arrays
        # with the same data, but additional masked values
        np.random.seed(1234567)
        x = np.random.randn(n)
        y = x + np.random.randn(n)
        xm = np.ones(len(x) + 5) * 1e16
        ym = np.ones(len(y) + 5) * 1e16
        xm[0:len(x)] = x
        ym[0:len(y)] = y
        mask = xm > 9e15
        xm = np.ma.array(xm, mask=mask)
        ym = np.ma.array(ym, mask=mask)
        return x, y, xm, ym
dataset/ETHPy150Open scipy/scipy/scipy/stats/tests/test_mstats_basic.py/TestCompareWithStats.generate_xy_sample/original