[Yt-svn] yt-commit r1545 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Nov 25 06:52:32 PST 2009


Author: mturk
Date: Wed Nov 25 06:52:32 2009
New Revision: 1545
URL: http://yt.enzotools.org/changeset/1545

Log:
Creation time is not defined in every simulation.



Modified:
   trunk/yt/lagos/HaloFinding.py

Modified: trunk/yt/lagos/HaloFinding.py
==============================================================================
--- trunk/yt/lagos/HaloFinding.py	(original)
+++ trunk/yt/lagos/HaloFinding.py	Wed Nov 25 06:52:32 2009
@@ -981,7 +981,7 @@
         padded, LE, RE, self._data_source = self._partition_hierarchy_3d(padding=self.padding)
         # For scaling the threshold, note that it's a passthrough
         if dm_only:
-            select = self._data_source["creation_time"] > 0
+            select = self.__get_dm_indices()
             total_mass = self._mpi_allsum((self._data_source["ParticleMassMsun"][select]).sum())
             sub_mass = (self._data_source["ParticleMassMsun"][select]).sum()
         else:



More information about the yt-svn mailing list