From 779878e46cc84fa48d8a30ea051edbaf99835122 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 2 Jan 2018 14:36:54 +0800 Subject: clusters: skip dropping out halos when using dumped data --- fg21sim/extragalactic/clusters/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index d18faf0..92bd722 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -352,7 +352,7 @@ class GalaxyClusters: Drop out the specified number of most powerful radio halos from the catalog, in order to obtain a more stable simulation. """ - if self.halo_dropout <= 0: + if (self.halo_dropout <= 0) or self.use_dump_halos_data: logger.info("No need to drop out halos.") return -- cgit v1.2.2