Esempio n. 1
0
def test_fid_1to3_b1():
    ds = data_dir_load(fid_1to3_b1)
    for test in nbody_answer(
        ds, "fiducial_1to3_b1_hdf5_part_0080", 6684119, fid_1to3_b1_fields
    ):
        test_fid_1to3_b1.__name__ = test.description
        yield test
Esempio n. 2
0
def test_gasoline_dmonly():
    cosmology_parameters = dict(current_redshift=0.0,
                                omega_lambda=0.728,
                                omega_matter=0.272,
                                hubble_constant=0.702)
    kwargs = dict(cosmology_parameters=cosmology_parameters,
                  unit_base={'length': (60.0, "Mpccm/h")})
    ds = data_dir_load(gasoline_dmonly, TipsyDataset, (), kwargs)
    for test in nbody_answer(ds, "agora_1e11.00400", 10550576, _fields):
        yield test
    psc = ParticleSelectionComparison(ds)
    psc.run_defaults()
Esempio n. 3
0
def test_tipsy_galaxy():
    ds = data_dir_load(
        tipsy_gal,
        kwargs={'bounding_box': [[-2000, 2000], [-2000, 2000], [-2000, 2000]]})
    # These tests should be re-enabled.  But the holdup is that the region
    # selector does not offset by domain_left_edge, and we have inelegant
    # selection using bboxes.
    #psc = ParticleSelectionComparison(ds)
    #psc.run_defaults()
    for test in sph_answer(ds, 'galaxy.00300', 315372, tg_sph_fields):
        test_tipsy_galaxy.__name__ = test.description
        yield test
    for test in nbody_answer(ds, 'galaxy.00300', 315372, tg_nbody_fields):
        test_tipsy_galaxy.__name__ = test.description
        yield test
Esempio n. 4
0
def test_pkdgrav():
    ds = data_dir_load(pkdgrav, TipsyDataset, (), kwargs=pkdgrav_kwargs)
    for test in nbody_answer(ds, "halo1e11_run1.00400", 26847360, _fields):
        yield test
    psc = ParticleSelectionComparison(ds)
    psc.run_defaults()