@pytest.fixture
def random_galaxy_params():
    '\n    Galaxy parameter for test.\n\n    This return a function of a dictionary with random params of a Galaxy\n    object\n    '

    def make(stars, gas, dm, seed):
        random = np.random.default_rng(seed=seed)
        x_s = random.random(stars)
        y_s = random.random(stars)
        z_s = random.random(stars)
        vx_s = random.random(stars)
        vy_s = random.random(stars)
        vz_s = random.random(stars)
        m_s = random.random(stars)
        x_dm = random.random(dm)
        y_dm = random.random(dm)
        z_dm = random.random(dm)
        vx_dm = random.random(dm)
        vy_dm = random.random(dm)
        vz_dm = random.random(dm)
        m_dm = random.random(dm)
        x_g = random.random(gas)
        y_g = random.random(gas)
        z_g = random.random(gas)
        vx_g = random.random(gas)
        vy_g = random.random(gas)
        vz_g = random.random(gas)
        m_g = random.random(gas)
        params = {'m_s': m_s, 'x_s': x_s, 'y_s': y_s, 'z_s': z_s, 'vx_s': vx_s, 'vy_s': vy_s, 'vz_s': vz_s, 'm_dm': m_dm, 'x_dm': x_dm, 'y_dm': y_dm, 'z_dm': z_dm, 'vx_dm': vx_dm, 'vy_dm': vy_dm, 'vz_dm': vz_dm, 'm_g': m_g, 'x_g': x_g, 'y_g': y_g, 'z_g': z_g, 'vx_g': vx_g, 'vy_g': vy_g, 'vz_g': vz_g}
        return params
    return make
Galaxy parameter for test.

This return a function of a dictionary with random params of a Galaxy
object
@pytest.fixture
def random_galaxy_params():
    '\n    Galaxy parameter for test.\n\n    This return a function of a dictionary with random params of a Galaxy\n    object\n    '

    def make(stars, gas, dm, seed):
        random = np.random.default_rng(seed=seed)
        x_s = random.random(stars)
        y_s = random.random(stars)
        z_s = random.random(stars)
        vx_s = random.random(stars)
        vy_s = random.random(stars)
        vz_s = random.random(stars)
        m_s = random.random(stars)
        x_dm = random.random(dm)
        y_dm = random.random(dm)
        z_dm = random.random(dm)
        vx_dm = random.random(dm)
        vy_dm = random.random(dm)
        vz_dm = random.random(dm)
        m_dm = random.random(dm)
        x_g = random.random(gas)
        y_g = random.random(gas)
        z_g = random.random(gas)
        vx_g = random.random(gas)
        vy_g = random.random(gas)
        vz_g = random.random(gas)
        m_g = random.random(gas)
        params = {'m_s': m_s, 'x_s': x_s, 'y_s': y_s, 'z_s': z_s, 'vx_s': vx_s, 'vy_s': vy_s, 'vz_s': vz_s, 'm_dm': m_dm, 'x_dm': x_dm, 'y_dm': y_dm, 'z_dm': z_dm, 'vx_dm': vx_dm, 'vy_dm': vy_dm, 'vz_dm': vz_dm, 'm_g': m_g, 'x_g': x_g, 'y_g': y_g, 'z_g': z_g, 'vx_g': vx_g, 'vy_g': vy_g, 'vz_g': vz_g}
        return params
    return make