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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Feb 25 15:43:54 PST 2009


Author: mturk
Date: Wed Feb 25 15:43:53 2009
New Revision: 1192
URL: http://yt.spacepope.org/changeset/1192

Log:
Added try/except for bizarre, confusing errors where the rates files were found
but not what I expect!



Modified:
   trunk/yt/lagos/OutputTypes.py

Modified: trunk/yt/lagos/OutputTypes.py
==============================================================================
--- trunk/yt/lagos/OutputTypes.py	(original)
+++ trunk/yt/lagos/OutputTypes.py	Wed Feb 25 15:43:53 2009
@@ -168,10 +168,16 @@
         StaticOutput.__init__(self, filename, data_style)
         rp = os.path.join(self.directory, "rates.out")
         if os.path.exists(rp):
-            self.rates = EnzoTable(rp, rates_out_key)
+            try:
+                self.rates = EnzoTable(rp, rates_out_key)
+            except:
+                pass
         cp = os.path.join(self.directory, "cool_rates.out")
         if os.path.exists(cp):
-            self.cool = EnzoTable(cp, cool_out_key)
+            try:
+                self.cool = EnzoTable(cp, cool_out_key)
+            except:
+                pass
 
         # Now fixes for different types of Hierarchies
         # This includes changing the fieldinfo class!



More information about the yt-svn mailing list