From 339daa8b276c52755eb635acf5771652a422a088 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 4 Jan 2018 22:37:17 +0800 Subject: clusters/halo: refactor tau_acceleration() to help RadioHaloAM Change "tau_acceleration" from a attribute to a method with the time parameter, and then simplify "fp_diffusion()" method. --- fg21sim/extragalactic/clusters/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/extragalactic/clusters/main.py') diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index b2ed530..c677f92 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -280,7 +280,7 @@ class GalaxyClusters: ("Rhalo_angular", halo.angular_radius), # [arcsec] ("volume", halo.volume), # [kpc^3] ("Mach_turb", halo.mach_turbulence), # turbulence Mach number - ("tau_acc", halo.tau_acceleration), # [Gyr] + ("tau_acc", halo.tau_acceleration()), # [Gyr] ("Ke", halo.injection_rate), # [cm^-3 Gyr^-1] ("gamma", halo.gamma), # Lorentz factors ("n_e", n_e), # [cm^-3] -- cgit v1.2.2