From fc3ebe7d8fea03bbd35961e11427af6291ee46f8 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 19 Jan 2019 11:40:18 +0800 Subject: clusters/halo: Minor cleanup --- fg21sim/extragalactic/clusters/halo.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fg21sim') diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 861c32b..0921103 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -241,10 +241,7 @@ class RadioHalo1M: M_main = self.mass_main(t) r_c = self.f_rc * helper.radius_virial(M_main, z) r_s = self.radius_stripping(t) - if r_s >= r_c: - return r_s - else: - return r_c + return max([r_s, r_c]) @lru_cache() def radius_stripping(self, t): -- cgit v1.2.2