mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 22:52:27 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user