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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Fri Jun 4 19:53:13 PDT 2010


Author: mturk
Date: Fri Jun  4 19:53:12 2010
New Revision: 1738
URL: http://yt.enzotools.org/changeset/1738

Log:
This should fix the case where data_style == enzo_packed_3d *and* the paths in
the hierarchy are absolute.



Modified:
   trunk/yt/lagos/HierarchyType.py

Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py	(original)
+++ trunk/yt/lagos/HierarchyType.py	Fri Jun  4 19:53:12 2010
@@ -395,7 +395,6 @@
         self._guess_data_style(self.pf["TopGridRank"], test_grid, test_grid_id)
 
     def _guess_data_style(self, rank, test_grid, test_grid_id):
-        if self.data_style is not None: return
         if test_grid[0] != os.path.sep:
             test_grid = os.path.join(self.directory, test_grid)
         if not os.path.exists(test_grid):
@@ -403,6 +402,7 @@
                                     os.path.basename(test_grid))
             mylog.debug("Your data uses the annoying hardcoded path.")
             self._strip_path = True
+        if self.data_style is not None: return
         try:
             a = SD.SD(test_grid)
             self.data_style = 'enzo_hdf4'



More information about the yt-svn mailing list