diff --git a/zipline/finance/performance.py b/zipline/finance/performance.py index 9a46f6bb..bf9276c4 100644 --- a/zipline/finance/performance.py +++ b/zipline/finance/performance.py @@ -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()