diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-19 13:20:00 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-19 13:20:00 +0800 |
commit | 08e33b8617f4f702a97e3aeacc5260b2254c7523 (patch) | |
tree | 71717feb79986259e2eac1b2a5359d7b476beb2f | |
parent | ad4a43dce176c3f087f5dc5af188dfc081934027 (diff) | |
download | fg21sim-08e33b8617f4f702a97e3aeacc5260b2254c7523.tar.bz2 |
clusters/halo: Force to use cluster catalog if use_dump_halos_data=True
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index e838094..f16a203 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -93,6 +93,11 @@ class GalaxyClusters: self.clobber = self.configs.getn("output/clobber") logger.info("Loaded and set up configurations") + if self.use_dump_halos_data and (not self.use_output_catalog): + self.use_output_catalog = True + logger.warning("Forced to use existing cluster catalog, " + "due to 'use_dump_halos_data=True'") + def _simulate_catalog(self): """ Simulate the (z, mass) catalog of the cluster distribution |