mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-24 13:00:57 +08:00
MAINT: Delegate to math_utils to leave bottleneck as optional
This commit is contained in:
@@ -2,12 +2,6 @@
|
||||
Technical Analysis Factors
|
||||
--------------------------
|
||||
"""
|
||||
from bottleneck import (
|
||||
nanargmax,
|
||||
nanmax,
|
||||
nanmean,
|
||||
nansum,
|
||||
)
|
||||
from numbers import Number
|
||||
from numpy import (
|
||||
abs,
|
||||
@@ -31,6 +25,12 @@ from zipline.pipeline.data import USEquityPricing
|
||||
from zipline.pipeline.mixins import SingleInputMixin
|
||||
from zipline.utils.control_flow import ignore_nanwarnings
|
||||
from zipline.utils.input_validation import expect_types
|
||||
from zipline.utils.math_utils import (
|
||||
nanargmax,
|
||||
nanmax,
|
||||
nanmean,
|
||||
nansum,
|
||||
)
|
||||
from .factor import CustomFactor
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user