aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-01-19 11:40:18 +0800
committerAaron LI <aly@aaronly.me>2019-01-19 11:40:18 +0800
commitfc3ebe7d8fea03bbd35961e11427af6291ee46f8 (patch)
treead0046b48fddb9c572ace54863f90a329a0bc38c /fg21sim
parentd23e8897ac28ab0e7b5919ffc1898403c5d84582 (diff)
downloadfg21sim-fc3ebe7d8fea03bbd35961e11427af6291ee46f8.tar.bz2
clusters/halo: Minor cleanup
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py5
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):