Commits

John ZuHone committed 9332083 Merge

Merged in MatthewTurk/yt (pull request #368)

Comments (0)

Files changed (2)

yt/frontends/flash/data_structures.py

                 self.hubble_constant = self.cosmological_simulation = 0.0
 
     def __del__(self):
+        if self._handle is not self._particle_handle:
+            self._particle_handle.close()
         self._handle.close()
 
     @classmethod

yt/frontends/gdf/data_structures.py

             fileh = h5py.File(args[0],'r')
             if "gridded_data_format" in fileh:
                 return True
+                fileh.close()
+            fileh.close()
         except:
             pass
         return False