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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue Jul 8 09:54:53 PDT 2008


Author: mturk
Date: Tue Jul  8 09:54:52 2008
New Revision: 655
URL: http://yt.spacepope.org/changeset/655

Log:
Added a check for the maximum level in a projection.  Helps with some cases that DC found.



Modified:
   trunk/yt/lagos/BaseDataTypes.py

Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py	(original)
+++ trunk/yt/lagos/BaseDataTypes.py	Tue Jul  8 09:54:52 2008
@@ -729,6 +729,8 @@
         self._grids = self.source._grids
         if max_level == None:
             max_level = self.hierarchy.maxLevel
+        if source is not None:
+            max_level = min(max_level, source.gridLevels.max())
         self._max_level = max_level
         self._weight = weight_field
         self.center = center



More information about the yt-svn mailing list