<html><body>
<p>9 new commits in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/ec37f94e175c/">https://bitbucket.org/yt_analysis/yt/commits/ec37f94e175c/</a> Changeset:   ec37f94e175c Branch:      yt User:        migueldvb Date:        2016-03-20 03:14:34+00:00 Summary:     GDF answer tests</p>
<p>Affected #:  2 files</p>
<p>diff -r e870ed5eb0e897bbaf4be9da9c78dbf0e0fcdd42 -r ec37f94e175c706d3d12f0bddc36d72e5fb11bfd yt/frontends/gdf/tests/test_outputs.py --- /dev/null +++ b/yt/frontends/gdf/tests/test_outputs.py @@ -0,0 +1,40 @@ +""" +GDF frontend tests + + + +""" + +#----------------------------------------------------------------------------- +# Copyright © 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 +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”) + +wt = “sedov/sedov_tst_0004.h5” + +@requires_ds(wt) +def test_sedov_tunnel(): +    ds = data_dir_load(wt) +    yield assert_equal, str(ds), “sedov_tst_0004” +    for test in small_patch_amr(ds, <em>fields): +        test_sedov_tunnel.__name</em>_ = test.description +        yield test + + +@requires_file(wt) +def test_GDFDataset(): +    assert isinstance(data_dir_load(wt), GDFDataset)</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/1e88534b818b/">https://bitbucket.org/yt_analysis/yt/commits/1e88534b818b/</a> Changeset:   1e88534b818b Branch:      yt User:        migueldvb Date:        2016-03-20 04:02:23+00:00 Summary:     Prepend test_data_dir path to datafiles in GDF IOHandler</p>
<p>Affected #:  1 file</p>
<p>diff -r ec37f94e175c706d3d12f0bddc36d72e5fb11bfd -r 1e88534b818b15fa34c193a05ac266458c946dd8 yt/frontends/gdf/io.py --- a/yt/frontends/gdf/io.py +++ b/yt/frontends/gdf/io.py @@ -13,8 +13,10 @@</p>
<pre># The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
</pre>
<p>+import os</p>
<pre>import numpy as np
from yt.utilities.on_demand_imports import _h5py as h5py</pre>
<p>+from yt.config import ytcfg</p>
<pre>from yt.funcs import \
    mylog
from yt.utilities.io_handler import \</pre>
<p>@@ -44,7 +46,8 @@</p>
<pre>if not (len(chunks) == len(chunks[0].objs) == 1):
    raise RuntimeError
grid = chunks[0].objs[0]</pre>
<ul><li><p>h5f = h5py.File(grid.filename, ‘r’)</p></li></ul>
<p>+            data_dir = ytcfg.get("yt","test_data_dir") +            h5f = h5py.File(os.path.join(data_dir, grid.filename), ‘r’)</p>
<pre>gds = h5f.get(_grid_dname(grid.id))
for ftype, fname in fields:
    if self.ds.field_ordering == 1:</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/cebb14a41a23/">https://bitbucket.org/yt_analysis/yt/commits/cebb14a41a23/</a> Changeset:   cebb14a41a23 Branch:      yt User:        migueldvb Date:        2016-03-20 04:07:43+00:00 Summary:     Correct path to file in calls to h5f.open function</p>
<p>Affected #:  1 file</p>
<p>diff -r 1e88534b818b15fa34c193a05ac266458c946dd8 -r cebb14a41a23d0b79c82bf0a76f8c26d90882172 yt/frontends/gdf/io.py --- a/yt/frontends/gdf/io.py +++ b/yt/frontends/gdf/io.py @@ -41,12 +41,12 @@</p>
<pre>from sys import version
rv = {}
chunks = list(chunks)</pre>
<p>+        data_dir = ytcfg.get("yt", “test_data_dir”)</p>
<pre>         if selector.__class__.__name__ == "GridSelector":
if not (len(chunks) == len(chunks[0].objs) == 1):
    raise RuntimeError
grid = chunks[0].objs[0]</pre>
<ul><li><p>data_dir = ytcfg.get("yt","test_data_dir") h5f = h5py.File(os.path.join(data_dir, grid.filename), ‘r’) gds = h5f.get(_grid_dname(grid.id)) for ftype, fname in fields:</p></li></ul>
<p>@@ -78,10 +78,11 @@</p>
<pre>if grid.filename is None:
    continue
if fid is None:</pre>
<p>+                    _filename = os.path.join(data_dir, grid.filename)</p>
<pre>if version < '3':</pre>
<ul><li><p>fid = h5py.h5f.open(grid.filename,h5py.h5f.ACC_RDONLY)</p></li></ul>
<p>+                        fid = h5py.h5f.open(_filename,h5py.h5f.ACC_RDONLY)</p>
<pre>else:</pre>
<ul><li><p>fid = h5py.h5f.open(bytes(grid.filename,'utf-8'),h5py.h5f.ACC_RDONLY)</p></li></ul>
<p>+                        fid = h5py.h5f.open(bytes(_filename,'utf-8'),h5py.h5f.ACC_RDONLY)</p>
<pre>if self.ds.field_ordering == 1:
    # check the dtype instead
    data = np.empty(grid.ActiveDimensions[::-1],</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/fd308dd53fdf/">https://bitbucket.org/yt_analysis/yt/commits/fd308dd53fdf/</a> Changeset:   fd308dd53fdf Branch:      yt User:        migueldvb Date:        2016-03-20 23:00:50+00:00 Summary:     Revert “Correct path to file in calls to h5f.open function”</p>
<p>This reverts commit c3f0f25384e6a68b7d1c3af0a44a31e2a65d5c52.</p>
<p>Affected #:  1 file</p>
<p>diff -r cebb14a41a23d0b79c82bf0a76f8c26d90882172 -r fd308dd53fdfc89bf9dad7f173be1caeed20c7dc yt/frontends/gdf/io.py --- a/yt/frontends/gdf/io.py +++ b/yt/frontends/gdf/io.py @@ -41,12 +41,12 @@</p>
<pre>from sys import version
rv = {}
chunks = list(chunks)</pre>
<ul><li><p>data_dir = ytcfg.get("yt", “test_data_dir”)</p>
<p>if selector.__class__.__name__ == “GridSelector”:</p>
<pre>if not (len(chunks) == len(chunks[0].objs) == 1):
    raise RuntimeError
grid = chunks[0].objs[0]</pre></li></ul>
<p>+            data_dir = ytcfg.get("yt","test_data_dir")</p>
<pre>h5f = h5py.File(os.path.join(data_dir, grid.filename), 'r')
gds = h5f.get(_grid_dname(grid.id))
for ftype, fname in fields:</pre>
<p>@@ -78,11 +78,10 @@</p>
<pre>if grid.filename is None:
    continue
if fid is None:</pre>
<ul><li><p>_filename = os.path.join(data_dir, grid.filename) if version < ‘3’:</p></li>
<li><p>fid = h5py.h5f.open(_filename,h5py.h5f.ACC_RDONLY)</p></li></ul>
<p>+                        fid = h5py.h5f.open(grid.filename,h5py.h5f.ACC_RDONLY)</p>
<pre>else:</pre>
<ul><li><p>fid = h5py.h5f.open(bytes(_filename,'utf-8'),h5py.h5f.ACC_RDONLY)</p></li></ul>
<p>+                        fid = h5py.h5f.open(bytes(grid.filename,'utf-8'),h5py.h5f.ACC_RDONLY)</p>
<pre>if self.ds.field_ordering == 1:
    # check the dtype instead
    data = np.empty(grid.ActiveDimensions[::-1],</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/69f15c5505e8/">https://bitbucket.org/yt_analysis/yt/commits/69f15c5505e8/</a> Changeset:   69f15c5505e8 Branch:      yt User:        migueldvb Date:        2016-03-20 23:01:08+00:00 Summary:     Revert “Prepend test_data_dir path to datafiles in GDF IOHandler”</p>
<p>This reverts commit fdb0e4ee2fc5aa3389dd23e2b6c1f5bddb492a70.</p>
<p>Affected #:  1 file</p>
<p>diff -r fd308dd53fdfc89bf9dad7f173be1caeed20c7dc -r 69f15c5505e865c355a3a1dc133724f9713a69b8 yt/frontends/gdf/io.py --- a/yt/frontends/gdf/io.py +++ b/yt/frontends/gdf/io.py @@ -13,10 +13,8 @@</p>
<pre># The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
</pre>
<p>-import os</p>
<pre>import numpy as np
from yt.utilities.on_demand_imports import _h5py as h5py</pre>
<p>-from yt.config import ytcfg</p>
<pre>from yt.funcs import \
    mylog
from yt.utilities.io_handler import \</pre>
<p>@@ -46,8 +44,7 @@</p>
<pre>if not (len(chunks) == len(chunks[0].objs) == 1):
    raise RuntimeError
grid = chunks[0].objs[0]</pre>
<ul><li><p>data_dir = ytcfg.get("yt","test_data_dir")</p></li>
<li><p>h5f = h5py.File(os.path.join(data_dir, grid.filename), ‘r’)</p></li></ul>
<p>+            h5f = h5py.File(grid.filename, ‘r’)</p>
<pre>gds = h5f.get(_grid_dname(grid.id))
for ftype, fname in fields:
    if self.ds.field_ordering == 1:</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/9d2a3fe0bd9a/">https://bitbucket.org/yt_analysis/yt/commits/9d2a3fe0bd9a/</a> Changeset:   9d2a3fe0bd9a Branch:      yt User:        migueldvb Date:        2016-03-22 15:53:38+00:00 Summary:     Add units_override test for GDF frontend</p>
<p>Affected #:  1 file</p>
<p>diff -r 69f15c5505e865c355a3a1dc133724f9713a69b8 -r 9d2a3fe0bd9a87c60c8e5bedb6e9ccd0f81ceee5 yt/frontends/gdf/tests/test_outputs.py --- a/yt/frontends/gdf/tests/test_outputs.py +++ b/yt/frontends/gdf/tests/test_outputs.py @@ -15,7 +15,8 @@</p>
<pre>from yt.testing import \
    assert_equal, \</pre>
<ul><li><p>requires_file</p></li></ul>
<p>+    requires_file, \ +    units_override_check</p>
<pre>from yt.utilities.answer_testing.framework import \
    requires_ds, \
    small_patch_amr, \</pre>
<p>@@ -24,17 +25,23 @@</p>
<pre>_fields = ("density", "velocity_x")
</pre>
<p>-wt = “sedov/sedov_tst_0004.h5” +sedov = “sedov/sedov_tst_0004.h5”</p>
<p>-@requires_ds(wt) +@requires_ds(sedov)</p>
<pre>def test_sedov_tunnel():</pre>
<ul><li><p>ds = data_dir_load(wt)</p></li></ul>
<p>+    ds = data_dir_load(sedov)</p>
<pre>    yield assert_equal, str(ds), "sedov_tst_0004"
    for test in small_patch_amr(ds, _fields):
        test_sedov_tunnel.__name__ = test.description
        yield test

</pre>
<p>-@requires_file(wt) +@requires_file(sedov)</p>
<pre>def test_GDFDataset():</pre>
<ul><li><p>assert isinstance(data_dir_load(wt), GDFDataset)</p></li></ul>
<p>+    assert isinstance(data_dir_load(sedov), GDFDataset) + + +@requires_file(sedov) +def test_units_override(): +    for test in units_override_check(sedov): +        yield test</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/ff85191ef75c/">https://bitbucket.org/yt_analysis/yt/commits/ff85191ef75c/</a> Changeset:   ff85191ef75c Branch:      yt User:        migueldvb Date:        2016-03-22 16:00:31+00:00 Summary:     Update code support docs</p>
<p>Affected #:  1 file</p>
<p>diff -r 9d2a3fe0bd9a87c60c8e5bedb6e9ccd0f81ceee5 -r ff85191ef75c6a89101c08a047a5478850ffbf10 doc/source/reference/code_support.rst --- a/doc/source/reference/code_support.rst +++ b/doc/source/reference/code_support.rst @@ -36,7 +36,7 @@</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Gasoline              |     Y      |     Y     |      Y     |   Y   | Y [#f2]_ |    Y     |     Y      |   Full   |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>-| 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   |</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Maestro               |   Y [#f1]_ |     N     |      Y     |   Y   |    Y     |    Y     |     N      | Partial  |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>@@ -48,7 +48,7 @@</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| OWLS/EAGLE            |     Y      |     Y     |      Y     |   Y   | Y [#f2]_ |    Y     |     Y      |   Full   |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>-| Piernik               |     Y      |    N/A    |      Y     |   Y   |    Y     |    Y     |     N      |   Full   | +| Piernik               |     Y      |    N/A    |      Y     |   Y   |    Y     |    Y     |     Y      |   Full   |</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Pluto                 |     Y      |     N     |      Y     |   Y   |    Y     |    Y     |     Y      | Partial  |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/8dfc3dc88221/">https://bitbucket.org/yt_analysis/yt/commits/8dfc3dc88221/</a> Changeset:   8dfc3dc88221 Branch:      yt User:        migueldvb Date:        2016-03-22 16:53:47+00:00 Summary:     Add gdf answer tests to yaml 2.7 file</p>
<p>Affected #:  1 file</p>
<p>diff -r ff85191ef75c6a89101c08a047a5478850ffbf10 -r 8dfc3dc88221844dd443f2c0d16e4b25ec5ca0a9 tests/tests_2.7.yaml --- a/tests/tests_2.7.yaml +++ b/tests/tests_2.7.yaml @@ -20,6 +20,9 @@</p>
<pre>  local_gadget_270:
    - yt/frontends/gadget/tests/test_outputs.py
</pre>
<p>+  local_gdf_270: +    – yt/frontends/gdf/tests/test_outputs.py +</p>
<pre>local_halos_270:
  - yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
  - yt/analysis_modules/halo_finding/tests/test_rockstar.py</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/fbf09b0618e0/">https://bitbucket.org/yt_analysis/yt/commits/fbf09b0618e0/</a> Changeset:   fbf09b0618e0 Branch:      yt User:        xarthisius Date:        2016-03-28 11:45:57+00:00 Summary:     Merged in migueldvb/yt (pull request #2055)</p>
<p>GDF answer tests Affected #:  5 files</p>
<p>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 @@</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Gasoline              |     Y      |     Y     |      Y     |   Y   | Y [#f2]_ |    Y     |     Y      |   Full   |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>-| 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   |</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Maestro               |   Y [#f1]_ |     N     |      Y     |   Y   |    Y     |    Y     |     N      | Partial  |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>@@ -48,7 +48,7 @@</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| OWLS/EAGLE            |     Y      |     Y     |      Y     |   Y   | Y [#f2]_ |    Y     |     Y      |   Full   |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>-| Piernik               |     Y      |    N/A    |      Y     |   Y   |    Y     |    Y     |     N      |   Full   | +| Piernik               |     Y      |    N/A    |      Y     |   Y   |    Y     |    Y     |     Y      |   Full   |</p>
<pre>+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+
| Pluto                 |     Y      |     N     |      Y     |   Y   |    Y     |    Y     |     Y      | Partial  |
+-----------------------+------------+-----------+------------+-------+----------+----------+------------+----------+</pre>
<p>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 @@</p>
<pre>  local_gadget_270:
    - yt/frontends/gadget/tests/test_outputs.py
</pre>
<p>+  local_gdf_270: +    – yt/frontends/gdf/tests/test_outputs.py +</p>
<pre>local_halos_270:
  - yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
  - yt/analysis_modules/halo_finding/tests/test_rockstar.py</pre>
<p>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 © 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” + +@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, <em>fields): +        test_sedov_tunnel.__name</em>_ = test.description +        yield test + + +@requires_file(sedov) +def test_GDFDataset(): +    assert isinstance(data_dir_load(sedov), GDFDataset) + + +@requires_file(sedov) +def test_units_override(): +    for test in units_override_check(sedov): +        yield test</p>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27A8nA3akaxTws7Nuxg-2FPZd5Tonwvhlwd-2Fwqa5tE6HBDhGQm6burCK7iR0AY1Q-2BFi4tdeNkhiYsn9l-2Bp8KnSWZ2uz8-2FP-2F3nq6Sm-2B-2BzXINboGIDWH4kekt70be4WQRXjrIkpbWag4LQXDYb0iO8FqosbcUWI5cdtAW465e3sqopzEP7XICXSF98zIrJQAZy0PBgE-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>