@pytest.fixture(scope='session')
def halo_particles(mock_dm_halo):
    'Spherical mock halo.'

    def make(N_part=100, seed=None):
        random = np.random.RandomState(seed=seed)
        (mass_dm, pos_dm) = mock_dm_halo(N_part=N_part)
        vel_dm = random.random_sample(size=(N_part, 3))
        return (mass_dm, pos_dm, vel_dm)
    return make
Spherical mock halo.
@pytest.fixture(scope='session')
def halo_particles(mock_dm_halo):
    

    def make(N_part=100, seed=None):
        random = np.random.RandomState(seed=seed)
        (mass_dm, pos_dm) = mock_dm_halo(N_part=N_part)
        vel_dm = random.random_sample(size=(N_part, 3))
        return (mass_dm, pos_dm, vel_dm)
    return make