mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 23:06:39 +08:00
Merge pull request #1678 from quantopian/flake8-line-too-longs
STY: Wrap/reformat lines over 80 chars.
This commit is contained in:
@@ -801,8 +801,8 @@ class OrdersStopTestCase(WithSimParams,
|
||||
start=normalize_date(self.minutes[0]),
|
||||
end=normalize_date(self.minutes[-1])
|
||||
)
|
||||
with tmp_bcolz_equity_minute_bar_reader(self.trading_calendar, days, assets) \
|
||||
as reader:
|
||||
with tmp_bcolz_equity_minute_bar_reader(
|
||||
self.trading_calendar, days, assets) as reader:
|
||||
data_portal = DataPortal(
|
||||
self.env.asset_finder, self.trading_calendar,
|
||||
first_trading_day=reader.first_trading_day,
|
||||
|
||||
@@ -1197,7 +1197,8 @@ class TradingAlgorithm(object):
|
||||
"""
|
||||
# If the user has not set the symbol lookup date,
|
||||
# use the end_session as the date for sybmol->sid resolution.
|
||||
_lookup_date = self._symbol_lookup_date if self._symbol_lookup_date is not None \
|
||||
_lookup_date = self._symbol_lookup_date \
|
||||
if self._symbol_lookup_date is not None \
|
||||
else self.sim_params.end_session
|
||||
|
||||
return self.asset_finder.lookup_symbol(
|
||||
|
||||
@@ -1040,11 +1040,11 @@ class SQLiteAdjustmentWriter(object):
|
||||
dividend_payouts['ex_date'] = dividend_payouts['ex_date'].values.\
|
||||
astype('datetime64[s]').astype(integer)
|
||||
dividend_payouts['record_date'] = \
|
||||
dividend_payouts['record_date'].values.astype('datetime64[s]').\
|
||||
astype(integer)
|
||||
dividend_payouts['record_date'].values.\
|
||||
astype('datetime64[s]').astype(integer)
|
||||
dividend_payouts['declared_date'] = \
|
||||
dividend_payouts['declared_date'].values.astype('datetime64[s]').\
|
||||
astype(integer)
|
||||
dividend_payouts['declared_date'].values.\
|
||||
astype('datetime64[s]').astype(integer)
|
||||
dividend_payouts['pay_date'] = \
|
||||
dividend_payouts['pay_date'].values.astype('datetime64[s]').\
|
||||
astype(integer)
|
||||
|
||||
Reference in New Issue
Block a user