[Yt-svn] yt-commit r986 - trunk/yt/extensions
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Mon Dec 8 21:04:49 PST 2008
Author: britton
Date: Mon Dec 8 21:04:49 2008
New Revision: 986
URL: http://yt.spacepope.org/changeset/986
Log:
Halo profiler will now automatically run profiles for calculating virial
quantities if needed.
Modified:
trunk/yt/extensions/HaloProfiler.py
Modified: trunk/yt/extensions/HaloProfiler.py
==============================================================================
--- trunk/yt/extensions/HaloProfiler.py (original)
+++ trunk/yt/extensions/HaloProfiler.py Mon Dec 8 21:04:49 2008
@@ -337,8 +337,8 @@
virialFile = "%s/%s" % (self.pf.fullpath,
self.haloProfilerParameters['VirialQuantitiesOutputFile'])
if not(os.path.exists(virialFile)):
- mylog.error("Virial quantities not available. Run makeProfiles to get them.")
- return
+ mylog.info("Virial quantities file not found. Making profiles to calculate virial quantities.")
+ self.makeProfiles()
mylog.info("Reading virial quantities from %s." % virialFile)
virialLines = file(virialFile)
More information about the yt-svn
mailing list