diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 155c9c5..af112cb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,9 @@ Development Version Older Versions ~~~~~~~~~~~~~~ +Enhancements +++++++++++++ +- Removed unnecessary multiplication by 1e6 in cosmo.py (thanks @iw381) v2.0.0 ------ diff --git a/hmf/cosmo.py b/hmf/cosmo.py index 48e2c3e..abe171b 100644 --- a/hmf/cosmo.py +++ b/hmf/cosmo.py @@ -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): """