aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-31 22:35:39 +0800
committerAaron LI <aly@aaronly.me>2018-10-31 22:35:39 +0800
commit66592a2052ba333c2d898633579558d74238ad7e (patch)
tree24549a56aac4110658790318612f107f04f1bcef /fg21sim/extragalactic/clusters
parent1eefe2c863b87fa19ab40046d96aa23863ff8077 (diff)
downloadfg21sim-66592a2052ba333c2d898633579558d74238ad7e.tar.bz2
clusters/halo: Fix the 'lru_cache' usage
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index c83e791..ed6b4d3 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -238,7 +238,7 @@ class RadioHalo:
"""
return self.radius_turbulence()
- @lru_cache
+ @lru_cache()
def radius_turbulence(self, t=None):
"""
The radius of the turbulence injection region.
@@ -645,7 +645,7 @@ class RadioHalo:
z_merger = COSMO.redshift(t_merger)
return helper.calc_gas_density_profile(mass=M_main+M_sub, z=z_merger)
- @lru_cache
+ @lru_cache()
def _velocity_turb(self, t=None):
"""
Calculate the turbulence velocity dispersion (i.e., turbulence Mach