From fea0272a343ec700505654c6d042538d0db590f9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 29 Aug 2017 20:53:31 +0800 Subject: clusters/psformalism: Remove config "f_darkmatter" Use "1 - baryon_fraction = 1 - Ob0/Om0" to replace "f_darkmatter". --- fg21sim/extragalactic/clusters/psformalism.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fg21sim/extragalactic') diff --git a/fg21sim/extragalactic/clusters/psformalism.py b/fg21sim/extragalactic/clusters/psformalism.py index f28c0d4..508d391 100644 --- a/fg21sim/extragalactic/clusters/psformalism.py +++ b/fg21sim/extragalactic/clusters/psformalism.py @@ -42,12 +42,11 @@ class PSFormalism: """ comp = "extragalactic/clusters" self.datafile = self.configs.get_path(comp+"/ps_data") - self.f_darkmatter = self.configs.getn(comp+"/f_darkmatter") self.Mmin_cluster = self.configs.getn(comp+"/mass_min") # [Msun] @property def Mmin_halo(self): - return self.Mmin_cluster * self.f_darkmatter + return self.Mmin_cluster * COSMO.darkmatter_fraction def _load_data(self, filepath=None): """ @@ -225,7 +224,7 @@ class PSFormalism: df = pd.DataFrame(np.column_stack([z_list, M_list]), columns=["z", "mass"]) - df["mass"] /= self.f_darkmatter + df["mass"] /= COSMO.darkmatter_fraction comment = [ "cluster number counts : %d" % counts, "z : redshift", -- cgit v1.2.2