[Yt-svn] yt: Apparently the max_dens dict needs to be updated like this now.

hg at spacepope.org hg at spacepope.org
Wed Jun 30 15:35:41 PDT 2010


hg Repository: yt
details:   yt/rev/26328949934c
changeset: 1855:26328949934c
user:      Stephen Skory <stephenskory at yahoo.com>
date:
Wed Jun 30 15:34:20 2010 -0700
description:
Apparently the max_dens dict needs to be updated like this now.

diffstat:

 yt/lagos/HaloFinding.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r e1429ccfbce9 -r 26328949934c yt/lagos/HaloFinding.py
--- a/yt/lagos/HaloFinding.py	Wed Jun 30 08:44:29 2010 -0700
+++ b/yt/lagos/HaloFinding.py	Wed Jun 30 15:34:20 2010 -0700
@@ -1358,6 +1358,8 @@
         max_dens = {}
         for i,m in self._max_dens.items(): max_dens[i+my_first_id] = m
         self._max_dens = max_dens
+        for halo in self._groups:
+            halo._max_dens = self._max_dens
         # sort the list by the size of the groups
         # Now we add ghost halos and reassign all the IDs
         # Note: we already know which halos we own!



More information about the yt-svn mailing list