[Yt-svn] yt-commit r1777 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Mon Jun 28 11:43:08 PDT 2010


Author: mturk
Date: Mon Jun 28 11:43:06 2010
New Revision: 1777
URL: http://yt.enzotools.org/changeset/1777

Log:
Fix the bug that embarrassed me at the Enzo Workshop today.  For some reason,
even when data_mode was 'r', it was calling the data file initializer.



Modified:
   trunk/yt/lagos/HierarchyType.py

Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py	(original)
+++ trunk/yt/lagos/HierarchyType.py	Mon Jun 28 11:43:06 2010
@@ -152,10 +152,9 @@
             self._data_mode = mode = 'r'
         else:
             self._data_mode = mode = 'a'
-
-        self.__create_data_file(fn)
-        self.__data_filename = fn
-        self._data_file = h5py.File(fn, self._data_mode)
+            self.__create_data_file(fn)
+            self.__data_filename = fn
+            self._data_file = h5py.File(fn, self._data_mode)
 
     @parallel_root_only
     def __create_data_file(self, fn):



More information about the yt-svn mailing list