[Yt-svn] yt-commit r907 - trunk/yt/extensions

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Thu Nov 6 14:39:49 PST 2008


Author: britton
Date: Thu Nov  6 14:39:49 2008
New Revision: 907
URL: http://yt.spacepope.org/changeset/907

Log:
Fixed bug causing hdf5 output to be all zeros.  The fixed resolution buffer 
calls for (leftEdge_x,rightEdge_x,leftEdge_y,rightEdge_y) and I was giving
(leftEdge_x,leftEdge_y,rightEdge_x,rightEdge_y).



Modified:
   trunk/yt/extensions/HaloProfiler.py

Modified: trunk/yt/extensions/HaloProfiler.py
==============================================================================
--- trunk/yt/extensions/HaloProfiler.py	(original)
+++ trunk/yt/extensions/HaloProfiler.py	Thu Nov  6 14:39:49 2008
@@ -188,7 +188,7 @@
                     output = h5.openFile(dataFilename, "a")
                     # Create fixed resolution buffer for each projection and write them out.
                     for e,field in enumerate(self.projectionFields.keys()):
-                        frb = raven.FixedResolutionBuffer(pc.plots[e].data,(proj_left[0],proj_left[1],proj_right[0],proj_right[1]),
+                        frb = raven.FixedResolutionBuffer(pc.plots[e].data,(proj_left[0],proj_right[0],proj_left[1],proj_right[1]),
                                                           (projectionResolution,projectionResolution),
                                                           antialias=True)
                         output.createArray("/",field,frb[field])



More information about the yt-svn mailing list