[Yt-svn] yt-commit r1386 - trunk/yt/extensions
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Tue Jul 21 11:07:51 PDT 2009
Author: britton
Date: Tue Jul 21 11:07:51 2009
New Revision: 1386
URL: http://yt.spacepope.org/changeset/1386
Log:
Added id entry to halo list for old hop file reader.
Modified:
trunk/yt/extensions/HaloProfiler.py
Modified: trunk/yt/extensions/HaloProfiler.py
==============================================================================
--- trunk/yt/extensions/HaloProfiler.py (original)
+++ trunk/yt/extensions/HaloProfiler.py Tue Jul 21 11:07:51 2009
@@ -410,9 +410,10 @@
line = line.strip()
if not(line.startswith('#')):
onLine = line.split()
+ id = int(onLine[0])
center = [float(onLine[4]),float(onLine[5]),float(onLine[6])]
r_max = self.haloRadius * self.pf.units['mpc']
- halo = {'center': center, 'r_max': r_max}
+ halo = {'id': id, 'center': center, 'r_max': r_max}
self.hopHalos.append(halo)
def _ReadProfile(self,profileFile):
More information about the yt-svn
mailing list