[yt-svn] commit/yt: ngoldbaum: use a smaller dataset in the gizmo frontend tests
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Jun 14 08:26:18 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/1ab1c4af79c3/
Changeset: 1ab1c4af79c3
Branch: yt
User: ngoldbaum
Date: 2016-06-13 22:20:53+00:00
Summary: use a smaller dataset in the gizmo frontend tests
Move the answer tests for gizmo_64 from the gadget frontend to the gizmo
frontend. These tests replace the tests that are currently there, which are
running too slowly on the test machine.
Affected #: 3 files
diff -r 124453298c78e4c52a575398ec927c4da21d7192 -r 1ab1c4af79c3e4db88472108434465d27e63265f tests/tests.yaml
--- a/tests/tests.yaml
+++ b/tests/tests.yaml
@@ -26,7 +26,7 @@
local_gdf_000:
- yt/frontends/gdf/tests/test_outputs.py
- local_gizmo_000:
+ local_gizmo_001:
- yt/frontends/gizmo/tests/test_outputs.py
local_halos_000:
diff -r 124453298c78e4c52a575398ec927c4da21d7192 -r 1ab1c4af79c3e4db88472108434465d27e63265f yt/frontends/gadget/tests/test_outputs.py
--- a/yt/frontends/gadget/tests/test_outputs.py
+++ b/yt/frontends/gadget/tests/test_outputs.py
@@ -25,7 +25,6 @@
isothermal_h5 = "IsothermalCollapse/snap_505.hdf5"
isothermal_bin = "IsothermalCollapse/snap_505"
-g64 = "gizmo_64/output/snap_N64L16_135.hdf5"
# This maps from field names to weight field names to use for projections
iso_fields = OrderedDict(
@@ -42,11 +41,6 @@
)
iso_kwargs = dict(bounding_box=[[-3, 3], [-3, 3], [-3, 3]])
-g64_fields = iso_fields.copy()
-g64_fields["deposit", "PartType4_density"] = None
-g64_kwargs = dict(bounding_box=[[-1e5, 1e5], [-1e5, 1e5], [-1e5, 1e5]])
-
-
@requires_file(isothermal_h5)
@requires_file(isothermal_bin)
def test_GadgetDataset():
@@ -62,10 +56,3 @@
for test in sph_answer(ds, 'snap_505', 2**17, iso_fields):
test_iso_collapse.__name__ = test.description
yield test
-
- at requires_ds(g64, big_data=True)
-def test_gizmo_64():
- ds = data_dir_load(g64, kwargs=g64_kwargs)
- for test in sph_answer(ds, 'snap_N64L16_135', 524288, g64_fields):
- test_gizmo_64.__name__ = test.description
- yield test
diff -r 124453298c78e4c52a575398ec927c4da21d7192 -r 1ab1c4af79c3e4db88472108434465d27e63265f yt/frontends/gizmo/tests/test_outputs.py
--- a/yt/frontends/gizmo/tests/test_outputs.py
+++ b/yt/frontends/gizmo/tests/test_outputs.py
@@ -34,13 +34,16 @@
(('gas', 'velocity_magnitude'), None),
(("deposit", "all_count"), None),
(("deposit", "all_cic"), None),
+ (("deposit", "PartType0_density"), None),
]
)
- at requires_ds(FIRE_m12i)
-def test_GizmoDataset():
- ds = data_dir_load(FIRE_m12i)
+g64 = "gizmo_64/output/snap_N64L16_135.hdf5"
+
+ at requires_ds(g64, big_data=True)
+def test_gizmo_64():
+ ds = data_dir_load(g64)
assert isinstance(ds, GizmoDataset)
- for test in sph_answer(ds, 'snapshot_600', 4786950, fields):
- test_GizmoDataset.__name__ = test.description
+ for test in sph_answer(ds, 'snap_N64L16_135', 524288, fields):
+ test_gizmo_64.__name__ = test.description
yield test
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list