MAINT: Use TALib abstract function names value when creating transforms.

Instead of using reading the __all__ value and filtering out Function,
use the abstract internal variable that lists all functions.
This commit is contained in:
Eddie Hebert
2013-06-28 16:22:22 -04:00
parent c7c55399be
commit 4510c56142
+2 -3
View File
@@ -169,7 +169,6 @@ def make_transform(talib_fn, name):
# add all TA-Lib functions to locals
for name in talib.abstract.__all__:
for name in talib.abstract.__FUNCTION_NAMES:
fn = getattr(talib.abstract, name)
if name != 'Function':
locals()[name] = make_transform(fn, name)
locals()[name] = make_transform(fn, name)