STY: Fix flake8 failures.

This commit is contained in:
Scott Sanderson
2016-07-28 16:43:05 -04:00
parent 78dd69c5a6
commit 7e2230a763
3 changed files with 4 additions and 6 deletions
-1
View File
@@ -21,7 +21,6 @@ from nose_parameterized import parameterized
import pandas as pd
from six import iteritems
from six.moves import range, map
from toolz import concat
import zipline.utils.events
from zipline.utils.calendars import get_calendar
-1
View File
@@ -41,7 +41,6 @@ from zipline.testing import (
from zipline.testing.fixtures import WithAssetFinder
from zipline.testing.predicates import assert_equal, assert_isidentical
from zipline.utils.numpy_utils import float64_dtype, int64_dtype
from zipline.utils.pandas_utils import ignore_pandas_nan_categorical_warning
nameof = op.attrgetter('name')
+4 -4
View File
@@ -1141,10 +1141,10 @@ class ParameterizedFactorTestCase(WithTradingEnvironment, ZiplineTestCase):
alpha = 1 - decay_rate
span = (2 / alpha) - 1
# XXX: This is a comically inefficient way to compute a windowed EWMSTD.
# Don't use it outside of testing. We're using rolling-apply of an
# ewma (which is itself a rolling-window function) because we only want
# to look at ``window_length`` rows at a time.
# XXX: This is a comically inefficient way to compute a windowed
# EWMSTD. Don't use it outside of testing. We're using rolling-apply
# of an ewma (which is itself a rolling-window function) because we
# only want to look at ``window_length`` rows at a time.
return rolling_apply(
self.raw_data,
window_length,