[Yt-svn] yt-commit r980 - trunk/yt/reason

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Thu Dec 4 23:17:58 PST 2008


Author: mturk
Date: Thu Dec  4 23:17:58 2008
New Revision: 980
URL: http://yt.spacepope.org/changeset/980

Log:
Fixed a problem with reason and field detection...



Modified:
   trunk/yt/reason/Functions.py

Modified: trunk/yt/reason/Functions.py
==============================================================================
--- trunk/yt/reason/Functions.py	(original)
+++ trunk/yt/reason/Functions.py	Thu Dec  4 23:17:58 2008
@@ -40,7 +40,7 @@
         if f in outputfile.field_info and \
             outputfile.field_info[f].particle_type: continue
         if only_display_fields and \
-            f in outputfile.field_info[f] and \
+            f in outputfile.field_info and \
             not outputfile.field_info[f].display_field: continue
         fields.append(f)
     return sorted(fields)



More information about the yt-svn mailing list