diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-19 11:40:18 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-19 11:40:18 +0800 |
commit | fc3ebe7d8fea03bbd35961e11427af6291ee46f8 (patch) | |
tree | ad0046b48fddb9c572ace54863f90a329a0bc38c | |
parent | d23e8897ac28ab0e7b5919ffc1898403c5d84582 (diff) | |
download | fg21sim-fc3ebe7d8fea03bbd35961e11427af6291ee46f8.tar.bz2 |
clusters/halo: Minor cleanup
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 5 |
1 files changed, 1 insertions, 4 deletions
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): |