diff options
author | Aaron LI <aly@aaronly.me> | 2017-09-01 15:31:24 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-09-01 15:31:24 +0800 |
commit | fb559ff794b79246fe64c3f0a11ddc7c55d9a9a8 (patch) | |
tree | cc7b97ced86f74e2ec8c88a84a698b0bc46afb1f /fg21sim/extragalactic/clusters/helper.py | |
parent | e35fc3ce66a7dfe0099a17fdab83952460f52f62 (diff) | |
download | fg21sim-fb559ff794b79246fe64c3f0a11ddc7c55d9a9a8.tar.bz2 |
Update "Fnu_to_Tb_fast()" to "Fnu_to_Tb()"
Diffstat (limited to 'fg21sim/extragalactic/clusters/helper.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/helper.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |