[Yt-svn] yt-commit r1332 - branches/yt-1.5/yt/lagos trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Jun 10 08:00:25 PDT 2009


Author: mturk
Date: Wed Jun 10 08:00:23 2009
New Revision: 1332
URL: http://yt.spacepope.org/changeset/1332

Log:
Changed padding from 0.2 to 0.02.  Linking length for FOF still at 0.2, not
sure about that.



Modified:
   branches/yt-1.5/yt/lagos/HaloFinding.py
   trunk/yt/lagos/HaloFinding.py

Modified: branches/yt-1.5/yt/lagos/HaloFinding.py
==============================================================================
--- branches/yt-1.5/yt/lagos/HaloFinding.py	(original)
+++ branches/yt-1.5/yt/lagos/HaloFinding.py	Wed Jun 10 08:00:23 2009
@@ -321,7 +321,7 @@
         HaloList.write_out(self, filename)
 
 class GenericHaloFinder(ParallelAnalysisInterface):
-    def __init__(self, pf, dm_only=True, padding=0.2):
+    def __init__(self, pf, dm_only=True, padding=0.02):
         self.pf = pf
         self.hierarchy = pf.h
         self.center = (pf["DomainRightEdge"] + pf["DomainLeftEdge"])/2.0
@@ -415,7 +415,7 @@
             halo.write_particle_list(f)
 
 class HOPHaloFinder(GenericHaloFinder, HOPHaloList):
-    def __init__(self, pf, threshold=160, dm_only=True, padding=0.2):
+    def __init__(self, pf, threshold=160, dm_only=True, padding=0.02):
         GenericHaloFinder.__init__(self, pf, dm_only, padding)
         
         # do it once with no padding so the total_mass is correct (no duplicated particles)
@@ -438,7 +438,7 @@
         self._join_halolists()
 
 class FOFHaloFinder(GenericHaloFinder, FOFHaloList):
-    def __init__(self, pf, link=0.2, dm_only=True, padding=0.2):
+    def __init__(self, pf, link=0.2, dm_only=True, padding=0.02):
         self.pf = pf
         self.hierarchy = pf.h
         self.center = (pf["DomainRightEdge"] + pf["DomainLeftEdge"])/2.0

Modified: trunk/yt/lagos/HaloFinding.py
==============================================================================
--- trunk/yt/lagos/HaloFinding.py	(original)
+++ trunk/yt/lagos/HaloFinding.py	Wed Jun 10 08:00:23 2009
@@ -321,7 +321,7 @@
         HaloList.write_out(self, filename)
 
 class GenericHaloFinder(ParallelAnalysisInterface):
-    def __init__(self, pf, dm_only=True, padding=0.2):
+    def __init__(self, pf, dm_only=True, padding=0.02):
         self.pf = pf
         self.hierarchy = pf.h
         self.center = (pf["DomainRightEdge"] + pf["DomainLeftEdge"])/2.0
@@ -415,7 +415,7 @@
             halo.write_particle_list(f)
 
 class HOPHaloFinder(GenericHaloFinder, HOPHaloList):
-    def __init__(self, pf, threshold=160, dm_only=True, padding=0.2):
+    def __init__(self, pf, threshold=160, dm_only=True, padding=0.02):
         GenericHaloFinder.__init__(self, pf, dm_only, padding)
         
         # do it once with no padding so the total_mass is correct (no duplicated particles)
@@ -438,7 +438,7 @@
         self._join_halolists()
 
 class FOFHaloFinder(GenericHaloFinder, FOFHaloList):
-    def __init__(self, pf, link=0.2, dm_only=True, padding=0.2):
+    def __init__(self, pf, link=0.2, dm_only=True, padding=0.02):
         self.pf = pf
         self.hierarchy = pf.h
         self.center = (pf["DomainRightEdge"] + pf["DomainLeftEdge"])/2.0



More information about the yt-svn mailing list