three letter difference between sequential and parallel.

This commit is contained in:
fawce
2012-07-13 16:11:15 -04:00
parent ceb9013363
commit 276725ba4d
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ class Aggregate(Component):
try:
self.append(event)
if not (self.is_full() or self.draining):
if self.is_full() or self.draining:
event = self.next()
if event:
+1 -3
View File
@@ -176,9 +176,7 @@ class TradeSimulationClient(Component):
record.extra['algo_dt'] = self.current_dt
data_injector = Processor(inject_event_data)
log_pipeline = NestedSetup([self.zmq_out,
#e.g. FileHandler(...)
data_injector])
log_pipeline = NestedSetup([self.zmq_out,data_injector])
with log_pipeline.threadbound(), self.stdout_capture(self.logger, ''):
self.algorithm.handle_data(data)
# if no log socket, just run the algo normally