[Yt-svn] yt-commit r1590 - trunk/yt/extensions

sskory at wrangler.dreamhost.com sskory at wrangler.dreamhost.com
Fri Jan 22 17:40:12 PST 2010


Author: sskory
Date: Fri Jan 22 17:40:10 2010
New Revision: 1590
URL: http://yt.enzotools.org/changeset/1590

Log:
Forgot a math.sqrt in the halo mass function.

Modified:
   trunk/yt/extensions/HaloMassFcn.py

Modified: trunk/yt/extensions/HaloMassFcn.py
==============================================================================
--- trunk/yt/extensions/HaloMassFcn.py	(original)
+++ trunk/yt/extensions/HaloMassFcn.py	Fri Jan 22 17:40:10 2010
@@ -392,7 +392,7 @@
         
         if self.fitting_function==1:
             # Press-Schechter (This form from Jenkins et al. 2001, MNRAS 321, 372-384, eqtn. 5)
-            thismult = sqrt(2.0/math.pi) * nu * exp(-0.5*nu*nu);
+            thismult = math.sqrt(2.0/math.pi) * nu * exp(-0.5*nu*nu);
         
         elif self.fitting_function==2:
             # Jenkins et al. 2001, MNRAS 321, 372-384, eqtn. 9



More information about the yt-svn mailing list