[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Tue Dec 11 07:48:42 PST 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/380f62e5f4f2/
changeset: 380f62e5f4f2
branch: yt
user: MatthewTurk
date: 2012-12-11 12:05:29
summary: Adding a close for particle_handle in FLASH frontend and a close for temp HDF5
files in GDF frontend's _is_valid routine.
affected #: 2 files
diff -r 182a56beac8b8a449915e157e5d7e5e2901da8da -r 380f62e5f4f2cd4cfa2627dfd988bebf253af05b yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -450,6 +450,8 @@
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
diff -r 182a56beac8b8a449915e157e5d7e5e2901da8da -r 380f62e5f4f2cd4cfa2627dfd988bebf253af05b yt/frontends/gdf/data_structures.py
--- a/yt/frontends/gdf/data_structures.py
+++ b/yt/frontends/gdf/data_structures.py
@@ -248,6 +248,8 @@
fileh = h5py.File(args[0],'r')
if "gridded_data_format" in fileh:
return True
+ fileh.close()
+ fileh.close()
except:
pass
return False
https://bitbucket.org/yt_analysis/yt/changeset/93320835f626/
changeset: 93320835f626
branch: yt
user: jzuhone
date: 2012-12-11 16:48:40
summary: Merged in MatthewTurk/yt (pull request #368)
affected #: 2 files
diff -r 6c8b29681fef1e54d9486a65567b05ed1d938745 -r 93320835f626e08a4a6378656ad376e225794a04 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -450,6 +450,8 @@
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
diff -r 6c8b29681fef1e54d9486a65567b05ed1d938745 -r 93320835f626e08a4a6378656ad376e225794a04 yt/frontends/gdf/data_structures.py
--- a/yt/frontends/gdf/data_structures.py
+++ b/yt/frontends/gdf/data_structures.py
@@ -248,6 +248,8 @@
fileh = h5py.File(args[0],'r')
if "gridded_data_format" in fileh:
return True
+ fileh.close()
+ fileh.close()
except:
pass
return False
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