diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-30 15:34:25 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-30 16:44:18 +0800 |
commit | 518f32cafe3534f8c2b0528c8b0fb7f64d6122ac (patch) | |
tree | b19731d99d91e86e3c45f50c5b0c0833438d2266 /fg21sim/extragalactic/clusters/psformalism.py | |
parent | 70db11d6f68cbea0c1755520ec96ca6cd9c7e88f (diff) | |
download | fg21sim-518f32cafe3534f8c2b0528c8b0fb7f64d6122ac.tar.bz2 |
clusters: Minor cleanups (rename 'comp' to 'sec')
Diffstat (limited to 'fg21sim/extragalactic/clusters/psformalism.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/psformalism.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fg21sim/extragalactic/clusters/psformalism.py b/fg21sim/extragalactic/clusters/psformalism.py index 328ba08..bf8612f 100644 --- a/fg21sim/extragalactic/clusters/psformalism.py +++ b/fg21sim/extragalactic/clusters/psformalism.py @@ -41,20 +41,20 @@ class PSFormalism: """ Load the required configurations and set them. """ - comp = "extragalactic/psformalism" - self.model = self.configs.getn(comp+"/model") - self.M_min = self.configs.getn(comp+"/M_min") - self.M_max = self.configs.getn(comp+"/M_max") - self.M_step = self.configs.getn(comp+"/M_step") - self.z_min = self.configs.getn(comp+"/z_min") - self.z_max = self.configs.getn(comp+"/z_max") - self.z_step = self.configs.getn(comp+"/z_step") - self.dndlnm_outfile = self.configs.get_path(comp+"/dndlnm_outfile") - - comp = "extragalactic/clusters" + sec = "extragalactic/psformalism" + self.model = self.configs.getn(sec+"/model") + self.M_min = self.configs.getn(sec+"/M_min") + self.M_max = self.configs.getn(sec+"/M_max") + self.M_step = self.configs.getn(sec+"/M_step") + self.z_min = self.configs.getn(sec+"/z_min") + self.z_max = self.configs.getn(sec+"/z_max") + self.z_step = self.configs.getn(sec+"/z_step") + self.dndlnm_outfile = self.configs.get_path(sec+"/dndlnm_outfile") + + sec = "extragalactic/clusters" fdm = 1 - COSMO.baryon_fraction - self.Mmin = self.configs.getn(comp+"/mass_min") * fdm # [Msun] - self.boost = self.configs.getn(comp+"/boost") + self.Mmin = self.configs.getn(sec+"/mass_min") * fdm # [Msun] + self.boost = self.configs.getn(sec+"/boost") self.clobber = self.configs.getn("output/clobber") |