mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
MAINT: Remove ndict class.
Now that ndict is no longer used in any part of the system during a backtest, remove all remaining references in tests, etc.
This commit is contained in:
@@ -22,10 +22,9 @@ import pandas as pd
|
||||
from datetime import timedelta, datetime
|
||||
from unittest import TestCase
|
||||
|
||||
from zipline import ndict
|
||||
|
||||
from zipline.utils.test_utils import setup_logger
|
||||
|
||||
from zipline.protocol import Event
|
||||
from zipline.sources import SpecificEquityTrades
|
||||
from zipline.transforms.utils import StatefulTransform, EventWindow
|
||||
from zipline.transforms import MovingVWAP
|
||||
@@ -38,7 +37,7 @@ from zipline.test_algorithms import BatchTransformAlgorithm
|
||||
|
||||
|
||||
def to_dt(msg):
|
||||
return ndict({'dt': msg})
|
||||
return Event({'dt': msg})
|
||||
|
||||
|
||||
class NoopEventWindow(EventWindow):
|
||||
|
||||
Reference in New Issue
Block a user