From 5886d5bd7d5b269f9524701a1dcc949621f2bc6f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 25 Jun 2017 21:56:17 +0800 Subject: halo.py: Fix wrong cosmo.age() usage --- fg21sim/extragalactic/clusters/halo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 11c05c4..d7f351f 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -677,7 +677,7 @@ class HaloSingle: """ if not hasattr(self, "_electron_injection_rate"): e_th = self.e_thermal # [erg/cm^3] - age = self.cosmo(self.z0) + age = self.cosmo.age(self.z0) term1 = (self.injection_index-2) * self.eta_e term2 = e_th / (self.pmin * self.mec * AC.c) # [cm^-3] term3 = 1.0 / (age * self.pmin) # [Gyr^-1 mec^-1] -- cgit v1.2.2