From 66592a2052ba333c2d898633579558d74238ad7e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 31 Oct 2018 22:35:39 +0800 Subject: clusters/halo: Fix the 'lru_cache' usage --- fg21sim/extragalactic/clusters/halo.py | 4 ++-- 1 file 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 -- cgit v1.2.2