[Yt-svn] commit/yt: MatthewTurk: Adding a filehandle close to FLASH

Bitbucket commits-noreply at bitbucket.org
Thu Nov 10 17:39:18 PST 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/384f497a891f/
changeset:   384f497a891f
branch:      yt
user:        MatthewTurk
date:        2011-11-11 02:38:27
summary:     Adding a filehandle close to FLASH
affected #:  1 file

diff -r 8517686431a903af3762374306b1991b2106b9df -r 384f497a891ff5577bec164d99852fa60512a667 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -350,6 +350,7 @@
         try:
             fileh = h5py.File(args[0],'r')
             if "bounding box" in fileh["/"].keys():
+                fileh.close()
                 return True
         except:
             pass

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