From fb559ff794b79246fe64c3f0a11ddc7c55d9a9a8 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 1 Sep 2017 15:31:24 +0800 Subject: Update "Fnu_to_Tb_fast()" to "Fnu_to_Tb()" --- fg21sim/extragalactic/clusters/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/extragalactic/clusters') diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py index 26146cc..b54340c 100644 --- a/fg21sim/extragalactic/clusters/helper.py +++ b/fg21sim/extragalactic/clusters/helper.py @@ -40,7 +40,7 @@ from ...share import CONFIGS, COSMO from ...utils.units import (Units as AU, Constants as AC, UnitConversions as AUC) -from ...utils.convert import Fnu_to_Tb_fast +from ...utils.convert import Fnu_to_Tb from ...utils.draw import circle from ...utils.transform import circle2ellipse @@ -398,7 +398,7 @@ def calc_brightness_mean(flux, frequency, omega, pixelsize=None): omega = pixelsize ** 2 # [arcsec^2] logger.warning("Object sky coverage < 1 pixel; force to be 1 pixel") - Tb = [Fnu_to_Tb_fast(Fnu, omega, freq) + Tb = [Fnu_to_Tb(Fnu, omega, freq) for Fnu, freq in zip(np.array(flux, ndmin=1), np.array(frequency, ndmin=1))] if len(Tb) == 1: -- cgit v1.2.2