three letter difference between sequential and parallel.

This commit is contained in:
fawce committed 2012-07-17 11:04:32 -04:00
1 parent ceb9013363
commit 276725ba4d
2 files changed
+2 -4

No files matched your search

+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