示例#1
0
文件: test_outputs.py 项目: tukss/yt
def test_snapshot_033():
    ds = data_dir_load(os33)
    psc = ParticleSelectionComparison(ds)
    psc.run_defaults()
    for test in sph_answer(ds, "snap_033", 2 * 128**3, _fields):
        test_snapshot_033.__name__ = test.description
        yield test
示例#2
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
示例#3
0
def test_arepo_tng59():
    ds = data_dir_load(tng59_h5, kwargs={'bounding_box': _tng59_bbox})
    for test in sph_answer(ds, 'halo_59', 10107142, tng59_fields):
        test_arepo_tng59.__name__ = test.description
        yield test
示例#4
0
def test_arepo_bullet():
    ds = data_dir_load(bullet_h5)
    for test in sph_answer(ds, 'snapshot_150', 26529600, bullet_fields):
        test_arepo_bullet.__name__ = test.description
        yield test
示例#5
0
def test_gizmo_64():
    ds = yt.load(g64)
    assert isinstance(ds, GizmoDataset)
    for test in sph_answer(ds, "snap_N64L16_135", 524288, fields):
        test_gizmo_64.__name__ = test.description
        yield test
示例#6
0
文件: test_outputs.py 项目: tlmnb/yt
def test_iso_collapse():
    ds = data_dir_load(isothermal_h5, kwargs=iso_kwargs)
    for test in sph_answer(ds, 'snap_505', 2**17, iso_fields):
        test_iso_collapse.__name__ = test.description
        yield test
示例#7
0
def test_snapshot_033():
    ds = data_dir_load(os33)
    for test in sph_answer(ds, 'snap_033', 2 * 128**3, _fields):
        test_snapshot_033.__name__ = test.description
        yield test
示例#8
0
def test_arepo_cr():
    ds = data_dir_load(cr_h5)
    assert ds.gamma_cr == ds.parameters["GammaCR"]
    for test in sph_answer(ds, "snapshot_039", 28313510, cr_fields):
        test_arepo_cr.__name__ = test.description
        yield test
示例#9
0
def test_fid_1to3_b1():
    ds = data_dir_load(fid_1to3_b1)
    for test in sph_answer(ds, 'fiducial_1to3_b1_hdf5_part_0080', 6684119, fid_1to3_b1_fields):
        test_fid_1to3_b1.__name__ = test.description
        yield test
示例#10
0
def test_magneticum():
    ds = data_dir_load(magneticum, kwargs=mag_kwargs)
    for test in sph_answer(ds, "snap_132", 3718111, mag_fields, center="max"):
        test_magneticum.__name__ = test.description
        yield test
示例#11
0
def test_tipsy_galaxy():
    ds = data_dir_load(tipsy_gal)
    for test in sph_answer(ds, 'galaxy.00300', 315372, tg_fields):
        test_tipsy_galaxy.__name__ = test.description
        yield test