From ad4a43dce176c3f087f5dc5af188dfc081934027 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 19 Oct 2017 13:14:14 +0800 Subject: clusters/halo: Support use the previously dumped halos raw data Add option "use_dump_halos_data" to control whether to just use the previously dumped halos data, therefore, the radio emissions at additional frequencies can be simply calculated. --- fg21sim/configs/checkers.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'fg21sim/configs/checkers.py') diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py index cbffcc8..2d23706 100644 --- a/fg21sim/configs/checkers.py +++ b/fg21sim/configs/checkers.py @@ -150,6 +150,7 @@ 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. """ @@ -165,6 +166,13 @@ def check_extragalactic_clusters(configs): results.update(_check_existence(configs, comp+"/catalog_outfile")) else: results.update(_check_missing(configs, comp+"/catalog_outfile")) + # dumped halos data required when enabled to use it + if configs.get(comp+"/use_dump_halos_data"): + results.update(_check_existence(configs, + comp+"/halos_catalog_outfile")) + else: + results.update(_check_missing(configs, + comp+"/halos_catalog_outfile")) results.update(_check_missing(configs, comp+"/output_dir")) return results -- cgit v1.2.2