aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-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):