[Yt-svn] yt: gridNumberOfParticles changed to grid_particle_count at some...

hg at spacepope.org hg at spacepope.org
Fri Jun 11 13:44:01 PDT 2010


hg Repository: yt
details:   yt/rev/140f3178c9cf
changeset: 1774:140f3178c9cf
user:      Sam Skillman <samuel.skillman at colorado.edu>
date:
Fri Jun 11 14:43:06 2010 -0600
description:
gridNumberOfParticles changed to grid_particle_count at some point in the past.  Updating find_particle_by_type

diffstat:

 yt/lagos/HierarchyType.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 03ca254dc44f -r 140f3178c9cf yt/lagos/HierarchyType.py
--- a/yt/lagos/HierarchyType.py	Fri Jun 11 11:17:59 2010 -0600
+++ b/yt/lagos/HierarchyType.py	Fri Jun 11 14:43:06 2010 -0600
@@ -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