<html><body>
<p>3 new commits in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/3f2a40faefc1/">https://bitbucket.org/yt_analysis/yt/commits/3f2a40faefc1/</a> Changeset:   3f2a40faefc1 Branch:      yt User:        xarthisius Date:        2016-04-18 19:04:11+00:00 Summary:     Add close() to HDF5FileHandler. Move h5py import inside HDF5FileHandler class definition. Closes #1211 Affected #:  1 file</p>
<p>diff -r d8eec89b2c86f300ce9cfb0205b97cefb5dd0c45 -r 3f2a40faefc1d9ead14a7f9eb1cae8c92d6bda85 yt/utilities/file_handler.py --- a/yt/utilities/file_handler.py +++ b/yt/utilities/file_handler.py @@ -13,14 +13,13 @@</p>
<pre># The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
</pre>
<p>-from yt.utilities.on_demand_imports import _h5py as h5py –</p>
<pre>from distutils.version import LooseVersion

class HDF5FileHandler(object):
    handle = None

    def __init__(self, filename):</pre>
<p>+        from yt.utilities.on_demand_imports import _h5py as h5py</p>
<pre>        self.handle = h5py.File(filename, 'r')

    def __del__(self):</pre>
<p>@@ -51,6 +50,10 @@</p>
<pre>    def items(self):
        return list(self.handle.items())
</pre>
<p>+    def close(self): +        if self.handle is not None: +            self.handle.close() +</p>
<pre>class FITSFileHandler(HDF5FileHandler):
    def __init__(self, filename):
        from yt.utilities.on_demand_imports import _astropy</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/0980bb9a7261/">https://bitbucket.org/yt_analysis/yt/commits/0980bb9a7261/</a> Changeset:   0980bb9a7261 Branch:      yt User:        xarthisius Date:        2016-04-18 20:18:17+00:00 Summary:     Revert import move Affected #:  1 file</p>
<p>diff -r 3f2a40faefc1d9ead14a7f9eb1cae8c92d6bda85 -r 0980bb9a7261173a70bbf6e1548aa5dc37b341bb yt/utilities/file_handler.py --- a/yt/utilities/file_handler.py +++ b/yt/utilities/file_handler.py @@ -13,13 +13,13 @@</p>
<pre># The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
</pre>
<p>+from yt.utilities.on_demand_imports import _h5py as h5py</p>
<pre>from distutils.version import LooseVersion

class HDF5FileHandler(object):
    handle = None

    def __init__(self, filename):</pre>
<ul><li><p>from yt.utilities.on_demand_imports import _h5py as h5py self.handle = h5py.File(filename, ‘r’)</p></li></ul>
<pre>def __del__(self):</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/605942cb9f98/">https://bitbucket.org/yt_analysis/yt/commits/605942cb9f98/</a> Changeset:   605942cb9f98 Branch:      yt User:        jzuhone Date:        2016-04-20 18:10:40+00:00 Summary:     Merged in xarthisius/yt (pull request #2128)</p>
<p>Add close() to HDF5FileHandler. Closes #1211 Affected #:  1 file</p>
<p>diff -r 27481b513244c9c7bb15578ed5381a812983e567 -r 605942cb9f98aaa215ee0bd67b0293bdd2302598 yt/utilities/file_handler.py --- a/yt/utilities/file_handler.py +++ b/yt/utilities/file_handler.py @@ -14,7 +14,6 @@</p>
<pre>#-----------------------------------------------------------------------------

from yt.utilities.on_demand_imports import _h5py as h5py</pre>
<p>–</p>
<pre>from distutils.version import LooseVersion

class HDF5FileHandler(object):</pre>
<p>@@ -51,6 +50,10 @@</p>
<pre>    def items(self):
        return list(self.handle.items())
</pre>
<p>+    def close(self): +        if self.handle is not None: +            self.handle.close() +</p>
<pre>class FITSFileHandler(HDF5FileHandler):
    def __init__(self, filename):
        from yt.utilities.on_demand_imports import _astropy</pre>
<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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27DTfS1UlBUGbEnbCoCTduhZEnz1P2QKLIgeiiyn8XdD6akhihoqn6JfJzqi0Tvyb4WwdPG0xSKH3IFmcORPXJalBtQJbT-2B3jMAWkBJaTf89DgoLcurh3ir8O182696LwInJViyoFOCsDirYZea39hyVi0SGLdrRSYfcQkg8ydVz13kFrh3nLX0U6A1AQ1UeqfM-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>