[yt-svn] commit/yt: xarthisius: [clump_handling:find_clumps] Don't assume that Density field exists

Bitbucket commits-noreply at bitbucket.org
Wed May 9 12:51:58 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/2f1fc1c2983a/
changeset:   2f1fc1c2983a
branch:      yt
user:        xarthisius
date:        2012-05-09 17:50:41
summary:     [clump_handling:find_clumps] Don't assume that Density field exists
affected #:  1 file

diff -r fa8f89f1a1b1a53e5d966f305f92dc600bd4273f -r 2f1fc1c2983a2bfb2f40e06b9fa4af37ad908464 yt/analysis_modules/level_sets/clump_handling.py
--- a/yt/analysis_modules/level_sets/clump_handling.py
+++ b/yt/analysis_modules/level_sets/clump_handling.py
@@ -190,7 +190,7 @@
             elif (child._isValid()):
                 these_children.append(child)
             else:
-                print "Eliminating invalid, childless clump with %d cells." % len(child.data["CellMassMsun"])
+                print "Eliminating invalid, childless clump with %d cells." % len(child.data["Ones"])
         if (len(these_children) > 1):
             print "%d of %d children survived." % (len(these_children),len(clump.children))            
             clump.children = these_children

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list