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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Fri May 16 16:02:33 PDT 2008


Author: mturk
Date: Fri May 16 16:02:33 2008
New Revision: 482
URL: http://yt.spacepope.org/changeset/482

Log:
Adding in this broad catch-all for errors in checking field dependencies-- the
theory being that if it can't get a field's dependency info due to an
exception, well, we don't want it anyway.



Modified:
   trunk/yt/lagos/HierarchyType.py

Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py	(original)
+++ trunk/yt/lagos/HierarchyType.py	Fri May 16 16:02:33 2008
@@ -479,7 +479,10 @@
         self.field_list = list(field_list)
         self.derived_field_list = []
         for field in fieldInfo:
-            fd = fieldInfo[field].get_dependencies(pf = self.parameter_file)
+            try:
+                fd = fieldInfo[field].get_dependencies(pf = self.parameter_file)
+            except:
+                continue
             available = na.all([f in self.field_list for f in fd.requested])
             if available: self.derived_field_list.append(field)
         for field in self.field_list:



More information about the yt-svn mailing list