From 6fa552dca1ad74f39a7d1d44e55d9eb8eaa4a9b9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 22 Oct 2017 18:08:43 +0800 Subject: clusters/formation: Fix problem that no mergers occurred --- fg21sim/extragalactic/clusters/main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'fg21sim/extragalactic/clusters/main.py') diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index 1aeb522..0be553a 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -216,6 +216,7 @@ class GalaxyClusters: merger_mass_min=self.merger_mass_min) clform.simulate_mergertree(main_only=True) if self.use_max_merger: + # NOTE: may be ``None`` due to no mergers occurred at all! mmev = clform.max_merger else: mmev = clform.recent_major_merger -- cgit v1.2.2