[Yt-svn] yt-commit r1105 - in trunk/yt: lagos/hop raven
sskory at wrangler.dreamhost.com
sskory at wrangler.dreamhost.com
Mon Jan 12 12:50:12 PST 2009
Author: sskory
Date: Mon Jan 12 12:50:10 2009
New Revision: 1105
URL: http://yt.spacepope.org/changeset/1105
Log:
Darn it. I coulda swore that last commit worked in parallel. This does.
Modified:
trunk/yt/lagos/hop/SS_HopOutput.py
trunk/yt/raven/Callbacks.py
Modified: trunk/yt/lagos/hop/SS_HopOutput.py
==============================================================================
--- trunk/yt/lagos/hop/SS_HopOutput.py (original)
+++ trunk/yt/lagos/hop/SS_HopOutput.py Mon Jan 12 12:50:10 2009
@@ -247,6 +247,9 @@
def get_indices(self):
return self.indices
+ def get_positions(self,f):
+ return self["particle_position_%s" % f]
+
class HaloFinder(HopList, ParallelAnalysisInterface):
def __init__(self, pf, threshold=160.0, dm_only=True, padding=0.2):
self.pf = pf
Modified: trunk/yt/raven/Callbacks.py
==============================================================================
--- trunk/yt/raven/Callbacks.py (original)
+++ trunk/yt/raven/Callbacks.py Mon Jan 12 12:50:10 2009
@@ -573,8 +573,8 @@
if size < self.min_size: continue
colors = na.ones(size)
plot._axes.hold(True)
- plot._axes.scatter(halo["particle_position_%s" % xf]*dx,
- halo["particle_position_%s" % yf]*dx, edgecolors="None",
+ plot._axes.scatter(halo.get_positions(xf)*dx,
+ halo.get_positions(yf)*dx, edgecolors="None",
s=self.p_size, c='black', alpha=self.alpha)
plot._axes.set_xlim(xx0,xx1)
plot._axes.set_ylim(yy0,yy1)
More information about the yt-svn
mailing list