fix typos

This commit is contained in:
wassname
2018-03-31 10:44:32 +08:00
parent dfb1bf51bd
commit b4faf9158d
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -117,9 +117,9 @@ def create_dividend(sid, payment, declared_date, ex_date, pay_date):
'net_amount': payment,
'payment_sid': None,
'ratio': None,
'declared_date': pd.tslib.declared_date.normalize(),
'ex_date': pd.tslib.ex_date.normalize(),
'pay_date': pd.tslib.pay_date.normalize(),
'declared_date': declared_date.normalize(),
'ex_date': ex_date.normalize(),
'pay_date': pay_date.normalize(),
'type': DATASOURCE_TYPE.DIVIDEND,
'source_id': 'MockDividendSource'
})
@@ -134,9 +134,9 @@ def create_stock_dividend(sid, payment_sid, ratio, declared_date,
'ratio': ratio,
'net_amount': None,
'gross_amount': None,
'dt': pd.tslib.declared_date.normalize(),
'ex_date': pd.tslib.ex_date.normalize(),
'pay_date': pd.tslib.pay_date.normalize(),
'dt': declared_date.normalize(),
'ex_date': ex_date.normalize(),
'pay_date': pay_date.normalize(),
'type': DATASOURCE_TYPE.DIVIDEND,
'source_id': 'MockDividendSource'
})
+3 -3
View File
@@ -263,9 +263,9 @@ def _run(handle_data,
# We still need to support bundles for other misc data, but we
# can handle this later.
if start != pd.tslib.start.normalize() or \
end != pd.tslib.end.normalize():
# todo: add to Sim_Params the option to start & end at specific times
if start != pd.Timestamp(start).normalize() or \
end != pd.Timestamp(end).normalize():
# todo: add to Sim_Params the option to start & end at specific times
log.warn(
"Catalyst currently starts and ends on the start and "
"end of the dates specified, respectively. We hope to "