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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Fri Feb 5 14:19:51 PST 2010


Author: mturk
Date: Fri Feb  5 14:19:48 2010
New Revision: 1610
URL: http://yt.enzotools.org/changeset/1610

Log:
If the particles are residing in a fully-enclosed grid, the entire set of
particles should be used.



Modified:
   trunk/yt/lagos/Profiles.py

Modified: trunk/yt/lagos/Profiles.py
==============================================================================
--- trunk/yt/lagos/Profiles.py	(original)
+++ trunk/yt/lagos/Profiles.py	Fri Feb  5 14:19:48 2010
@@ -166,9 +166,9 @@
                 # is_fully_enclosed to baryon fields, because child cells get
                 # in the way.
                 if field in self.pf.field_info \
-                    and self.pf.field_info[field].particle_type \
-                    and not self._data_source._is_fully_enclosed(source):
-                    pointI = self._data_source._get_particle_indices(source)
+                    and self.pf.field_info[field].particle_type:
+                    if not self._data_source._is_fully_enclosed(source):
+                        pointI = self._data_source._get_particle_indices(source)
                 else:
                     pointI = self._data_source._get_point_indices(source)
             data.append(source[field][pointI].ravel().astype('float64'))



More information about the yt-svn mailing list