[yt-svn] commit/yt: brittonsmith: Changing mass function normalization to use yt specifications for
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Jun 3 13:39:22 PDT 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/7d765411da34/
Changeset: 7d765411da34
Branch: yt
User: brittonsmith
Date: 2013-06-03 22:36:03
Summary: Changing mass function normalization to use yt specifications for
domain volume and not enzo parameters. This closes Issue #582.
Affected #: 1 file
diff -r 76857ec5fb59898ac23c8831d9ddd0165809ad8b -r 7d765411da341fa45519ecb3ab788d3701246eb7 yt/analysis_modules/halo_mass_function/halo_mass_function.py
--- a/yt/analysis_modules/halo_mass_function/halo_mass_function.py
+++ b/yt/analysis_modules/halo_mass_function/halo_mass_function.py
@@ -212,7 +212,7 @@
dis[self.num_sigma_bins-i-3] += dis[self.num_sigma_bins-i-2]
if i == (self.num_sigma_bins - 3): break
- self.dis = dis / self.pf['CosmologyComovingBoxSize']**3.0 * self.hubble0**3.0
+ self.dis = dis / (self.pf.domain_width * self.pf.units["mpccm"]).prod()
def sigmaM(self):
"""
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