diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-10 11:00:59 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-10 13:31:02 +0800 |
commit | 94f24f81acd9b2c3308a8f3d2d80b2661f610f64 (patch) | |
tree | e5e579510ecf9233c4c03efc5e0c231640e52dbc /fg21sim/extragalactic/clusters | |
parent | 0043ae770a02617b306f000df1ef297634cc85fb (diff) | |
download | fg21sim-94f24f81acd9b2c3308a8f3d2d80b2661f610f64.tar.bz2 |
clusters/main: Update _calc_halos_emission()
Match the updated variable names.
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |