mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 10:34:22 +08:00
Merge branch 'new_world_order' of github.com:quantopian/zipline into new_world_order
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from collections import defaultdict, deque
|
||||
from zipline.transforms.base import BaseTransform
|
||||
|
||||
class Returns(object):
|
||||
"""
|
||||
|
||||
+1
-2
@@ -144,7 +144,7 @@ class SimulatedTrading(object):
|
||||
|
||||
data_injector = Processor(inject_event_data)
|
||||
log_pipeline = NestedSetup([self.zmq_out,data_injector])
|
||||
with log_pipeline.threadbound(), self.stdout_capture(self.logger, ''):
|
||||
with log_pipeline.threadbound(), self.stdout_capture(Logger('Print'), ''):
|
||||
self.stream_results()
|
||||
# if no log socket, just run the algo normally
|
||||
else:
|
||||
@@ -233,7 +233,6 @@ class SimulatedTrading(object):
|
||||
socket = self.results_socket,
|
||||
)
|
||||
|
||||
|
||||
# This is a class, which is instantiated later
|
||||
# in run_algorithm. The class provides a generator.
|
||||
self.stdout_capture = stdout_only_pipe
|
||||
|
||||
+1
-1
@@ -131,7 +131,7 @@ from utils.date_utils import EPOCH, UN_EPOCH, epoch_now
|
||||
# Control Protocol
|
||||
# -----------------------
|
||||
|
||||
PRODUCTION_PREFIXES = ['PERF', 'RISK', 'EXCEPTION', 'CANCEL']
|
||||
PRODUCTION_PREFIXES = ['PERF', 'RISK', 'EXCEPTION','CANCEL','DONE', 'LOG']
|
||||
|
||||
INVALID_CONTROL_FRAME = FrameExceptionFactory('CONTROL')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user