[Yt-svn] yt-commit r1222 - trunk/yt/extensions
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Thu Mar 19 15:48:36 PDT 2009
Author: britton
Date: Thu Mar 19 15:48:36 2009
New Revision: 1222
URL: http://yt.spacepope.org/changeset/1222
Log:
Fixed bug in radius_units keyword.
Modified:
trunk/yt/extensions/HaloProfiler.py
Modified: trunk/yt/extensions/HaloProfiler.py
==============================================================================
--- trunk/yt/extensions/HaloProfiler.py (original)
+++ trunk/yt/extensions/HaloProfiler.py Thu Mar 19 15:48:36 2009
@@ -59,9 +59,6 @@
mylog.error("Keyword, hop_style, must be either 'old' or 'new'.")
exit(1)
- if self.halos is 'single' or hop_style is 'old':
- self.haloRadius = radius / radius_units
-
# Set some parameter defaults.
self._SetParameterDefaults()
@@ -93,6 +90,8 @@
# Create dataset object.
self.pf = lagos.EnzoStaticOutput(self.dataset)
+ if self.halos is 'single' or hop_style is 'old':
+ self.haloRadius = radius / self.pf[radius_units]
def makeProfiles(self):
"Make radial profiles for all halos on the list."
More information about the yt-svn
mailing list