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/helper.py | |
parent | ac7eeea99232239f4011cb45367aca722f6e4741 (diff) | |
download | fg21sim-69b97a5875dfacf8d4c9862689481d07b6d31168.tar.bz2 |
clusters/halo: Fix passing the "configs" object
Diffstat (limited to 'fg21sim/extragalactic/clusters/helper.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py index 2e27b11..2ce3e4a 100644 --- a/fg21sim/extragalactic/clusters/helper.py +++ b/fg21sim/extragalactic/clusters/helper.py @@ -237,7 +237,7 @@ def magnetic_field(mass, z=0.0, configs=CONFIGS): """ key = "extragalactic/clusters/eta_b" eta_b = configs.getn(key) - e_th = density_energy_thermal(mass=mass, z=z) + e_th = density_energy_thermal(mass=mass, z=z, configs=configs) B = np.sqrt(8*np.pi * eta_b * e_th) * 1e6 # [G] -> [uG] return B |