From 08e33b8617f4f702a97e3aeacc5260b2254c7523 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 19 Oct 2017 13:20:00 +0800 Subject: clusters/halo: Force to use cluster catalog if use_dump_halos_data=True --- fg21sim/extragalactic/clusters/main.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fg21sim/extragalactic/clusters') 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 -- cgit v1.2.2