Remove all namedicts.

This commit is contained in:
Stephen Diehl
2012-05-14 11:35:43 -04:00
parent f8401dc88e
commit e04415e63f
13 changed files with 58 additions and 60 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
from protocol_utils import namedict, ndict
from protocol_utils import ndict
__all__ = [
namedict,
ndict,
]
+2 -2
View File
@@ -55,7 +55,7 @@ def create_trading_environment(year=2006):
return trading_environment
def create_trade(sid, price, amount, datetime):
row = zp.namedict({
row = zp.ndict({
'source_id' : "test_factory",
'type' : zp.DATASOURCE_TYPE.TRADE,
'sid' : sid,
@@ -88,7 +88,7 @@ def create_trade_history(sid, prices, amounts, interval, trading_calendar):
return trades
def create_txn(sid, price, amount, datetime, btrid=None):
txn = zp.namedict({
txn = zp.ndict({
'sid' : sid,
'amount' : amount,
'dt' : datetime,