From 94f24f81acd9b2c3308a8f3d2d80b2661f610f64 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 10 Jan 2019 11:00:59 +0800 Subject: clusters/main: Update _calc_halos_emission() Match the updated variable names. --- fg21sim/extragalactic/clusters/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim') diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index dc08240..8fcf013 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -335,8 +335,8 @@ class GalaxyClusters: if ii % 100 == 0: logger.info("[%d/%d] %.1f%% ..." % (ii, num, 100*ii/num)) haloem = HaloEmission(gamma=hdict["gamma"], n_e=hdict["n_e"], - B=hdict["B0"], radius=hdict["Rhalo"], - redshift=hdict["z0"]) + B=hdict["B"], radius=hdict["Rhalo"], + redshift=hdict["z"]) emissivity = haloem.calc_emissivity(frequencies=self.frequencies) power = haloem.calc_power(self.frequencies, emissivity=emissivity) flux = haloem.calc_flux(self.frequencies) -- cgit v1.2.2