From 34098c6a8b1008f4950e8524936406b6611d74f9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 2 Jan 2018 13:35:34 +0800 Subject: clusters: rework the reuse of previously dumped cluster catalog --- fg21sim/configs/checkers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fg21sim/configs/checkers.py') diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py index 78d5b20..9759ef1 100644 --- a/fg21sim/configs/checkers.py +++ b/fg21sim/configs/checkers.py @@ -197,8 +197,9 @@ def check_extragalactic_clusters(configs): 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")) + if configs.get(comp+"/use_dump_catalog_data"): + results.update(_check_file_existence( + configs, comp+"/catalog_outfile", ext=".pkl")) else: results.update(_check_missing(configs, comp+"/catalog_outfile")) # dumped halos data required when enabled to use it -- cgit v1.2.2