From 69cc5e65649ae91b1fd8e338c1e5f91a9c6f8e94 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Tue, 2 Feb 2016 20:13:08 -0500 Subject: [PATCH] MAINT: Delegate to math_utils to leave bottleneck as optional --- zipline/pipeline/factors/technical.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zipline/pipeline/factors/technical.py b/zipline/pipeline/factors/technical.py index 8bd59147..3eb7eda2 100644 --- a/zipline/pipeline/factors/technical.py +++ b/zipline/pipeline/factors/technical.py @@ -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