From 69b97a5875dfacf8d4c9862689481d07b6d31168 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 25 Oct 2017 09:58:09 +0800 Subject: clusters/halo: Fix passing the "configs" object --- fg21sim/extragalactic/clusters/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/extragalactic/clusters/helper.py') 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 -- cgit v1.2.2