[Yt-svn] yt-commit r1384 - branches/yt-1.5/yt trunk/yt

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Mon Jul 20 06:27:31 PDT 2009


Author: mturk
Date: Mon Jul 20 06:27:30 2009
New Revision: 1384
URL: http://yt.spacepope.org/changeset/1384

Log:
Fixed a bug with the point where the PlotCollection was initialized



Modified:
   branches/yt-1.5/yt/commands.py
   trunk/yt/commands.py

Modified: branches/yt-1.5/yt/commands.py
==============================================================================
--- branches/yt-1.5/yt/commands.py	(original)
+++ branches/yt-1.5/yt/commands.py	Mon Jul 20 06:27:30 2009
@@ -317,12 +317,12 @@
         ${cmd_option_list}
         """
         pf = _fix_pf(arg)
-        pc=raven.PlotCollection(pf)
         center = opts.center
         if opts.center == (-1,-1,-1):
             mylog.info("No center fed in; seeking.")
             v, center = pf.h.find_max("Density")
         center = na.array(center)
+        pc=raven.PlotCollection(pf, center=center)
         if opts.axis == 4:
             axes = range(3)
         else:

Modified: trunk/yt/commands.py
==============================================================================
--- trunk/yt/commands.py	(original)
+++ trunk/yt/commands.py	Mon Jul 20 06:27:30 2009
@@ -317,12 +317,12 @@
         ${cmd_option_list}
         """
         pf = _fix_pf(arg)
-        pc=raven.PlotCollection(pf)
         center = opts.center
         if opts.center == (-1,-1,-1):
             mylog.info("No center fed in; seeking.")
             v, center = pf.h.find_max("Density")
         center = na.array(center)
+        pc=raven.PlotCollection(pf, center=center)
         if opts.axis == 4:
             axes = range(3)
         else:



More information about the yt-svn mailing list