Hack to ignore dataframes in process_event, code seems to be written against namedicts.

This commit is contained in:
Stephen Diehl
2012-03-16 16:42:39 -04:00
parent b61b69a8dd
commit 89485c6ae3
+9
View File
@@ -209,6 +209,15 @@ class PerformanceTracker():
def process_event(self, event):
self.event_count += 1
# TODO: This seems to get both dataframes and namedicts?
# I can't find a corresponding test for this
# function so not sure if this is the desired behavior or
# something is going wrong upstream...
# hack for now
if isinstance(event, pandas.DataFrame):
return
if(event.dt >= self.market_close):
self.handle_market_close()