[Yt-svn] yt-commit r1598 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Jan 26 10:07:09 PST 2010
Author: mturk
Date: Tue Jan 26 10:07:08 2010
New Revision: 1598
URL: http://yt.enzotools.org/changeset/1598
Log:
The last commit included a fix that was specific to h5py-1.1. In h5py-1.2, the
location and names of exceptions for IO problems changed. We only support
h5py-1.2, and I was on an old version. Fixed.
Modified:
trunk/yt/lagos/HierarchyType.py
Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py (original)
+++ trunk/yt/lagos/HierarchyType.py Tue Jan 26 10:07:08 2010
@@ -355,7 +355,7 @@
try:
harray_fp = h5py.File(harray_fn)
self.num_grids = harray_fp["/Level"].len()
- except h5py.h5.H5Error:
+ except IOError:
pass
elif os.path.getsize(self.hierarchy_filename) == 0:
raise IOError(-1,"File empty", self.hierarchy_filename)
@@ -533,7 +533,7 @@
mylog.info("Storing the binary hierarchy")
try:
f = h5py.File(self.hierarchy_filename[:-9] + "harrays", "w")
- except h5py.h5.FileError:
+ except IOError:
return
f.create_dataset("/LeftEdges", data=self.grid_left_edge)
f.create_dataset("/RightEdges", data=self.grid_right_edge)
More information about the yt-svn
mailing list