@pytest.fixture
def mock_real_galaxy():
    'Mock real galaxy.'
    dm = np.loadtxt((TEST_DATA_REAL_PATH / 'dark.dat'))
    s = np.loadtxt((TEST_DATA_REAL_PATH / 'star.dat'))
    g = np.loadtxt((TEST_DATA_REAL_PATH / 'gas_.dat'))
    gal = core.Galaxy(m_s=((s[:, 0] * 10000000000.0) * u.M_sun), x_s=(s[:, 1] * u.kpc), y_s=(s[:, 2] * u.kpc), z_s=(s[:, 3] * u.kpc), vx_s=(s[:, 4] * (u.km / u.s)), vy_s=(s[:, 5] * (u.km / u.s)), vz_s=(s[:, 6] * (u.km / u.s)), m_dm=((dm[:, 0] * 10000000000.0) * u.M_sun), x_dm=(dm[:, 1] * u.kpc), y_dm=(dm[:, 2] * u.kpc), z_dm=(dm[:, 3] * u.kpc), vx_dm=(dm[:, 4] * (u.km / u.s)), vy_dm=(dm[:, 5] * (u.km / u.s)), vz_dm=(dm[:, 6] * (u.km / u.s)), m_g=((g[:, 0] * 10000000000.0) * u.M_sun), x_g=(g[:, 1] * u.kpc), y_g=(g[:, 2] * u.kpc), z_g=(g[:, 3] * u.kpc), vx_g=(g[:, 4] * (u.km / u.s)), vy_g=(g[:, 5] * (u.km / u.s)), vz_g=(g[:, 6] * (u.km / u.s)))
    return gal
Mock real galaxy.
@pytest.fixture
def mock_real_galaxy():
    
    dm = np.loadtxt((TEST_DATA_REAL_PATH / 'dark.dat'))
    s = np.loadtxt((TEST_DATA_REAL_PATH / 'star.dat'))
    g = np.loadtxt((TEST_DATA_REAL_PATH / 'gas_.dat'))
    gal = core.Galaxy(m_s=((s[:, 0] * 10000000000.0) * u.M_sun), x_s=(s[:, 1] * u.kpc), y_s=(s[:, 2] * u.kpc), z_s=(s[:, 3] * u.kpc), vx_s=(s[:, 4] * (u.km / u.s)), vy_s=(s[:, 5] * (u.km / u.s)), vz_s=(s[:, 6] * (u.km / u.s)), m_dm=((dm[:, 0] * 10000000000.0) * u.M_sun), x_dm=(dm[:, 1] * u.kpc), y_dm=(dm[:, 2] * u.kpc), z_dm=(dm[:, 3] * u.kpc), vx_dm=(dm[:, 4] * (u.km / u.s)), vy_dm=(dm[:, 5] * (u.km / u.s)), vz_dm=(dm[:, 6] * (u.km / u.s)), m_g=((g[:, 0] * 10000000000.0) * u.M_sun), x_g=(g[:, 1] * u.kpc), y_g=(g[:, 2] * u.kpc), z_g=(g[:, 3] * u.kpc), vx_g=(g[:, 4] * (u.km / u.s)), vy_g=(g[:, 5] * (u.km / u.s)), vz_g=(g[:, 6] * (u.km / u.s)))
    return gal