mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-14 12:10:24 +08:00
API: DataFrame/Panel sources expect integer sids, not identifiers
This commit modifies the DataFrameSource and DataPanelSource to accept only Int64Indexes on the incoming data and moves the burden of mapping user identifiers to TradingAlgorithm.run().
This commit is contained in:
@@ -98,7 +98,7 @@ class TestTALIB(TestCase):
|
||||
zipline_transforms = [ta.MA(timeperiod=10),
|
||||
ta.MA(timeperiod=25)]
|
||||
talib_fn = talib.abstract.MA
|
||||
algo = TALIBAlgorithm(talib=zipline_transforms)
|
||||
algo = TALIBAlgorithm(talib=zipline_transforms, identifiers=[0])
|
||||
algo.run(self.source)
|
||||
# Test if computed values match those computed by pandas rolling mean.
|
||||
sid = 0
|
||||
|
||||
Reference in New Issue
Block a user