[Yt-svn] yt-commit r1389 - trunk/yt/extensions
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Wed Jul 22 14:26:25 PDT 2009
Author: britton
Date: Wed Jul 22 14:26:24 2009
New Revision: 1389
URL: http://yt.spacepope.org/changeset/1389
Log:
Made the check for velocity profile fields pithier. Also, changed default for
image saving in makeProjections to False. Who needs images?
Modified:
trunk/yt/extensions/HaloProfiler.py
Modified: trunk/yt/extensions/HaloProfiler.py
==============================================================================
--- trunk/yt/extensions/HaloProfiler.py (original)
+++ trunk/yt/extensions/HaloProfiler.py Wed Jul 22 14:26:24 2009
@@ -68,7 +68,7 @@
# Look for any field that might need to have the bulk velocity set.
self.needBulkVelocity = False
for field in self.profileFields:
- if field.find('Velocity') >= 0 or field.find('Mach') >= 0:
+ if 'Velocity' in field or 'Mach' in field:
self.needBulkVelocity = True
break
@@ -201,7 +201,7 @@
else:
os.mkdir(outputDir)
- def makeProjections(self,save_images=True,save_cube=True,**kwargs):
+ def makeProjections(self,save_images=False,save_cube=True,**kwargs):
"Make projections of all halos using specified fields."
# Get virial quantities.
self._LoadVirialData()
More information about the yt-svn
mailing list