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

skillman at wrangler.dreamhost.com skillman at wrangler.dreamhost.com
Fri Jun 11 13:48:47 PDT 2010


Author: skillman
Date: Fri Jun 11 13:48:46 2010
New Revision: 1749
URL: http://yt.enzotools.org/changeset/1749

Log:
gridNumberOfParticles changed to grid_particle_count at some point in the past. Updating find_particle_by_type



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 11 13:48:46 2010
@@ -662,7 +662,7 @@
         them in **additional_fields**.
         """
         # Not sure whether this routine should be in the general HierarchyType.
-        if self.gridNumberOfParticles.sum() == 0:
+        if self.grid_particle_count.sum() == 0:
             mylog.info("Data contains no particles.");
             return None
         if additional_fields is None:



More information about the yt-svn mailing list