diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-04 20:57:56 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-04 20:57:56 +0800 |
commit | 0fe535c2ccbe408c37a6c54629c507c2788485b9 (patch) | |
tree | 75874e2df7fdb21c309f489dc6d3f2972df64434 /fg21sim/configs/checkers.py | |
parent | fcc461d3432b8c3dd417467e813ae934277b2171 (diff) | |
download | fg21sim-0fe535c2ccbe408c37a6c54629c507c2788485b9.tar.bz2 |
clusters: Use "hmf" to calculate halo mass functions/distributions
* New dependency "hmf" (halo mass functions) module
* Calculate halo mass distributions/functions (dndlnm) with respect to masses
and redshifts, instead of use the previous data file ("ps_data")
* New section "[extragalactic][psformalism]" in configurations
* New functions to write and read the dndlnm data
TODO:
* update the method to sample (mass, redshift) for clusters from the dndlnm
data
Diffstat (limited to 'fg21sim/configs/checkers.py')
-rw-r--r-- | fg21sim/configs/checkers.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py index 5316eac..76c99d3 100644 --- a/fg21sim/configs/checkers.py +++ b/fg21sim/configs/checkers.py @@ -150,13 +150,16 @@ def check_galactic_snr(configs): def check_extragalactic_clusters(configs): """ Check the "[extragalactic][clusters]" section of the configurations. + The related sections ("[extragalactic][psformalism]", + "[extragalactic][halos]") are also checked. """ comp = "extragalactic/clusters" comp_enabled = configs.foregrounds[0] results = {} if comp in comp_enabled: - # Only validate the configs if this component is enabled - results.update(_check_existence(configs, comp+"/ps_data")) + # output dndlnm data file required + key = "extragalactic/psformalism/dndlnm_outfile" + results.update(_check_missing(configs, key)) # catalog required when enabled to use it if configs.get(comp+"/use_output_catalog"): results.update(_check_existence(configs, comp+"/catalog_outfile")) |