Skip to content

Commit

Permalink
Removed unnecessary multiplication by 1e6 in cosmo.py (thanks @iw381)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Apr 11, 2016
1 parent 69e4d1f commit 2af7914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Development Version

Older Versions
~~~~~~~~~~~~~~
Enhancements
++++++++++++
- Removed unnecessary multiplication by 1e6 in cosmo.py (thanks @iw381)

v2.0.0
------
Expand Down
3 changes: 1 addition & 2 deletions hmf/cosmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ def mean_density0(self):
"""
Mean density of universe at z=0, [Msun h^2 / Mpc**3]
"""
# fixme: why the *1e6??
return (self.cosmo.Om0 * self.cosmo.critical_density0 / self.cosmo.h ** 2).to(u.MsolMass/u.Mpc**3).value * 1e6
return (self.cosmo.Om0 * self.cosmo.critical_density0 / self.cosmo.h ** 2).to(u.solMass/u.Mpc**3).value

def get_cosmo(name):
"""
Expand Down

0 comments on commit 2af7914

Please sign in to comment.