mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
MAINT: Force float in position values in period.
This commit is contained in:
1 parent
75360610a9
commit
31b85239f3
1 file changed
+2
-2
@@ -142,9 +142,9 @@ class PerformancePeriod(object):
|
||||
self._position_last_sale_prices[sid]
|
||||
except (KeyError, IndexError):
|
||||
self._position_amounts = \
|
||||
self._position_amounts.append(pd.Series({sid: 0}))
|
||||
self._position_amounts.append(pd.Series({sid: 0.0}))
|
||||
self._position_last_sale_prices = \
|
||||
self._position_last_sale_prices.append(pd.Series({sid: 0}))
|
||||
self._position_last_sale_prices.append(pd.Series({sid: 0.0}))
|
||||
|
||||
def add_dividend(self, div):
|
||||
# The dividend is received on midnight of the dividend
|
||||
|
||||
Reference in new issue
Block a user