[Yt-svn] yt-commit r536 - trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Jun 4 18:03:17 PDT 2008


Author: mturk
Date: Wed Jun  4 18:03:16 2008
New Revision: 536
URL: http://yt.spacepope.org/changeset/536

Log:
A very small set of changes to greatly improve the viz quality.

Take from the *next* highest level, and use the 's' mode of volume rendering.



Modified:
   trunk/yt/raven/Plot3DInterface.py

Modified: trunk/yt/raven/Plot3DInterface.py
==============================================================================
--- trunk/yt/raven/Plot3DInterface.py	(original)
+++ trunk/yt/raven/Plot3DInterface.py	Wed Jun  4 18:03:16 2008
@@ -50,7 +50,7 @@
         self.field = field
         self.dims = dims
         dx = self.width / dims
-        self.max_level = na.unique(pf.h.gridDxs[pf.h.gridDxs>=dx]).argmax()
+        self.max_level = na.unique(pf.h.gridDxs[pf.h.gridDxs>=dx]).argmax()+1
         self.__setup_data(take_log)
         self.vrid = None
         self.isoids = []
@@ -126,7 +126,7 @@
         nd = self.dims
         self.vrid = s2plot.ns2cvr(self.data, nd, nd, nd,
                            0, nd-1, 0, nd-1, 0, nd-1, 
-                           self.tr, 't',
+                           self.tr, 's',
                            self._dmin, self._dmax, self._amin, self._amax)
         
     def __register_callbacks(self):



More information about the yt-svn mailing list