From 200ac8cdc3661af0306b85d7589a13759a66ee41 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 24 Oct 2016 22:21:31 +0800 Subject: convert.py: Optimize "Fnu_to_Tb()" and "Sb_to_Tb()" * Optimize the "Fnu_to_Tb()" and "Sb_to_Tb()" functions by explicitly calculating the conversions, avoiding the slow `astropy.unit` conversions (which is rather slow). The new fast functions are named as "Fnu_to_Tb_fast()" and "Sb_to_Tb_fast()". * Optimize the new functions using `numba.jit` further. * Add `numba` to the dependencies. --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index b7725e3..1fce5c6 100755 --- a/setup.py +++ b/setup.py @@ -80,6 +80,7 @@ setup( ], install_requires=[ "numpy", + "numba", "scipy", "pandas", "astropy", -- cgit v1.2.2