[yt-svn] commit/yt: xarthisius: Merged in migueldvb/yt (pull request #2055)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Mar 28 04:46:10 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/fbf09b0618e0/
Changeset: fbf09b0618e0
Branch: yt
User: xarthisius
Date: 2016-03-28 11:45:57+00:00
Summary: Merged in migueldvb/yt (pull request #2055)
GDF answer tests
Affected #: 5 files
diff -r bba3843608189ecf29b8ad109ae02546bbd272af -r fbf09b0618e08deb4f675c82b61e816d8f17156a doc/source/reference/code_support.rst
--- a/doc/source/reference/code_support.rst
+++ b/doc/source/reference/code_support.rst
@@ -36,7 +36,7 @@
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Gasoline | Y | Y | Y | Y | Y [#f2]_ | Y | Y | Full |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
-| Grid Data Format (GDF)| Y | N/A | Y | Y | Y | Y | N | Full |
+| Grid Data Format (GDF)| Y | N/A | Y | Y | Y | Y | Y | Full |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Maestro | Y [#f1]_ | N | Y | Y | Y | Y | N | Partial |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
@@ -48,7 +48,7 @@
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| OWLS/EAGLE | Y | Y | Y | Y | Y [#f2]_ | Y | Y | Full |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
-| Piernik | Y | N/A | Y | Y | Y | Y | N | Full |
+| Piernik | Y | N/A | Y | Y | Y | Y | Y | Full |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Pluto | Y | N | Y | Y | Y | Y | Y | Partial |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
diff -r bba3843608189ecf29b8ad109ae02546bbd272af -r fbf09b0618e08deb4f675c82b61e816d8f17156a tests/tests_2.7.yaml
--- a/tests/tests_2.7.yaml
+++ b/tests/tests_2.7.yaml
@@ -20,6 +20,9 @@
local_gadget_270:
- yt/frontends/gadget/tests/test_outputs.py
+ local_gdf_270:
+ - yt/frontends/gdf/tests/test_outputs.py
+
local_halos_270:
- yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
- yt/analysis_modules/halo_finding/tests/test_rockstar.py
diff -r bba3843608189ecf29b8ad109ae02546bbd272af -r fbf09b0618e08deb4f675c82b61e816d8f17156a yt/frontends/gdf/tests/test_outputs.py
--- /dev/null
+++ b/yt/frontends/gdf/tests/test_outputs.py
@@ -0,0 +1,47 @@
+"""
+GDF frontend tests
+
+
+
+"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2016, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
+from yt.testing import \
+ assert_equal, \
+ requires_file, \
+ units_override_check
+from yt.utilities.answer_testing.framework import \
+ requires_ds, \
+ small_patch_amr, \
+ data_dir_load
+from yt.frontends.gdf.api import GDFDataset
+
+_fields = ("density", "velocity_x")
+
+sedov = "sedov/sedov_tst_0004.h5"
+
+ at requires_ds(sedov)
+def test_sedov_tunnel():
+ ds = data_dir_load(sedov)
+ yield assert_equal, str(ds), "sedov_tst_0004"
+ for test in small_patch_amr(ds, _fields):
+ test_sedov_tunnel.__name__ = test.description
+ yield test
+
+
+ at requires_file(sedov)
+def test_GDFDataset():
+ assert isinstance(data_dir_load(sedov), GDFDataset)
+
+
+ at requires_file(sedov)
+def test_units_override():
+ for test in units_override_check(sedov):
+ 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160328/4ffea9ea/attachment.htm>
More information about the yt-svn
mailing list