diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-25 09:58:09 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-25 09:58:09 +0800 |
commit | 69b97a5875dfacf8d4c9862689481d07b6d31168 (patch) | |
tree | 17520e08a06f41c18fd7c94cc1c5a3272bd641d6 /fg21sim/extragalactic/clusters/halo.py | |
parent | ac7eeea99232239f4011cb45367aca722f6e4741 (diff) | |
download | fg21sim-69b97a5875dfacf8d4c9862689481d07b6d31168.tar.bz2 |
clusters/halo: Fix passing the "configs" object
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index fd6f13a..9c6c70e 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -266,7 +266,8 @@ class RadioHalo: Unit: [uG] """ - return helper.magnetic_field(mass=self.M_obs, z=self.z_obs) + return helper.magnetic_field(mass=self.M_obs, z=self.z_obs, + configs=self.configs) @property @lru_cache() @@ -374,7 +375,8 @@ class RadioHalo: Ref.[cassano2005],Eqs.(31,32,33) """ s = self.injection_index - e_thermal = helper.density_energy_thermal(self.M_obs, self.z_obs) + e_thermal = helper.density_energy_thermal(self.M_obs, self.z_obs, + configs=self.configs) term1 = (s-2) * self.eta_e * e_thermal # [erg cm^-3] term2 = self.gamma_min**(s-2) term3 = AU.mec2 * self.age_obs # [erg Gyr] @@ -769,7 +771,7 @@ class RadioHalo: """ z = COSMO.redshift(t) mass = self._mass(t) # [Msun] - B = helper.magnetic_field(mass=mass, z=z) # [uG] + B = helper.magnetic_field(mass=mass, z=z, configs=self.configs) return B def _loss_ion(self, gamma, t): |