diff options
author | Aaron LI <aly@aaronly.me> | 2017-06-25 21:56:17 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-06-25 21:56:17 +0800 |
commit | 5886d5bd7d5b269f9524701a1dcc949621f2bc6f (patch) | |
tree | b2dc48cc9294b5dcc991519f52e5abe3f55bdaf4 /fg21sim/extragalactic/clusters/halo.py | |
parent | 7416a5ff090e156a2e8958b18d51d2a88089414a (diff) | |
download | fg21sim-5886d5bd7d5b269f9524701a1dcc949621f2bc6f.tar.bz2 |
halo.py: Fix wrong cosmo.age() usage
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |