aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs/checkers.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-02 13:35:34 +0800
committerAaron LI <aly@aaronly.me>2018-01-02 13:35:34 +0800
commit34098c6a8b1008f4950e8524936406b6611d74f9 (patch)
tree1a2014f86cee90b21a2c6fc068a5a84ca3ea5685 /fg21sim/configs/checkers.py
parent4a49490eb32398255dee3ee252e87aef626fb5d7 (diff)
downloadfg21sim-34098c6a8b1008f4950e8524936406b6611d74f9.tar.bz2
clusters: rework the reuse of previously dumped cluster catalog
Diffstat (limited to 'fg21sim/configs/checkers.py')
-rw-r--r--fg21sim/configs/checkers.py5
1 files changed, 3 insertions, 2 deletions
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