From c75dfd265e82b62af330f29be492a35c831238cc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 31 Jul 2017 23:47:52 +0800 Subject: clusters: Fix several small issues on wrong variable names Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI --- fg21sim/extragalactic/clusters/halo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/extragalactic/clusters/halo.py') diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 333da4e..50c1242 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -170,7 +170,7 @@ class RadioHalo: The angular radius of the radio halo. Unit: [arcsec] """ - DA = COSMO.DA(self.z) * 1e3 # [Mpc] -> [kpc] + DA = COSMO.DA(self.z_obs) * 1e3 # [Mpc] -> [kpc] theta = self.radius / DA # [rad] return theta * AUC.rad2arcsec @@ -316,7 +316,7 @@ class RadioHalo: Unit: [Jy] = 1e-23 [erg/s/cm^2/Hz] = 1e-26 [W/m^2/Hz] """ power = self.calc_power(emissivity) # [W/Hz] - DL = COSMO.DL(self.z) * AUC.Mpc2m # [m] + DL = COSMO.DL(self.z_obs) * AUC.Mpc2m # [m] flux = 1e26 * power / (4*np.pi * DL*DL) # [Jy] return flux -- cgit v1.2.2