diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-04 23:36:10 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-04 23:36:10 +0800 |
commit | 86b3eefa1efe237aacbfb43d354f95c1171f5dde (patch) | |
tree | 7152e2be834ba14b0af2ef4a30dfb306d3d6a371 /fg21sim/extragalactic/clusters/main.py | |
parent | 0fe535c2ccbe408c37a6c54629c507c2788485b9 (diff) | |
download | fg21sim-86b3eefa1efe237aacbfb43d354f95c1171f5dde.tar.bz2 |
clusters/psformalism.py: Rewrite sample_z_m() method
Also update clusters/main.py to calculate the halo mass distributions before
sampling the mass and redshifts for clusters.
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index 3d71593..a5c2497 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -104,6 +104,8 @@ class GalaxyClusters: """ logger.info("Simulating the clusters (z, mass) catalog ...") psform = PSFormalism(configs=self.configs) + psform.calc_dndlnm() + psform.write() counts = psform.calc_cluster_counts(coverage=self.sky.area) self.catalog, self.catalog_comment = psform.sample_z_m(counts) logger.info("Simulated cluster catalog of counts %d." % counts) |