[Yt-svn] yt-commit r1493 - trunk/yt/raven
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Wed Oct 21 19:07:11 PDT 2009
Author: mturk
Date: Wed Oct 21 19:07:10 2009
New Revision: 1493
URL: http://yt.enzotools.org/changeset/1493
Log:
This code was meant to be replaced before the last commit; this is functionally
identical before if periodic were selected between True and False.
Modified:
trunk/yt/raven/Callbacks.py
Modified: trunk/yt/raven/Callbacks.py
==============================================================================
--- trunk/yt/raven/Callbacks.py (original)
+++ trunk/yt/raven/Callbacks.py Wed Oct 21 19:07:10 2009
@@ -211,8 +211,10 @@
px_index = lagos.x_dict[plot.data.axis]
py_index = lagos.y_dict[plot.data.axis]
dom = plot.data.pf["DomainRightEdge"] - plot.data.pf["DomainLeftEdge"]
- pxs, pys = {True:na.mgrid[-1:1:3j,-1:1:3j],
- False: na.mgrid[0:0:1j,0:0:1j]}[self.periodic]
+ if self.periodic:
+ pxs, pys = na.mgrid[-1:1:3j,-1:1:3j]
+ else:
+ pxs, pys = na.mgrid[0:0:1j,0:0:1j]
GLE = plot.data.gridLeftEdge
GRE = plot.data.gridRightEdge
for px_off, py_off in zip(pxs.ravel(), pys.ravel()):
More information about the yt-svn
mailing list