@pytest.fixture
def null_data(N=1000, dy=1, rseed=0):
 rng = np.random.RandomState(rseed)
 t = (100 * rng.rand(N))
 dy = ((0.5 * dy) * (1 + rng.rand(N)))
 y = (dy * rng.randn(N))
 return (t, y, dy)

@ pytest . fixture def null_data ( N = 1000 , dy = 1 , rseed = 0 ) : rng = np . random . RandomState ( rseed ) t = ( 100 * rng . rand ( N ) ) dy = ( ( 0.5 * dy ) * ( 1 + rng . rand ( N ) ) ) y = ( dy * rng . randn ( N ) ) return ( t , y , dy )
generate null hypothesis data .