Large refactoring and documentation of new algorithm base class and batch transform.

This commit is contained in:
Thomas Wiecki
2012-09-19 17:49:39 -04:00
parent 7242a4ee86
commit 729a4d9058
12 changed files with 402 additions and 290 deletions
-6
View File
@@ -5,13 +5,8 @@ from collections import defaultdict
import numpy as np
from zipline.core.devsimulator import AddressAllocator
# TODO: refactor the factory to use generators
from zipline.optimize.factory import create_predictable_zipline
DEFAULT_TIMEOUT = 15 # seconds
EXTENDED_TIMEOUT = 90
from zipline.utils.test_utils import setup_logger, teardown_logger
class TestUpDown(TestCase):
@@ -36,7 +31,6 @@ class TestUpDown(TestCase):
teardown_logger(self)
@skip
@timed(DEFAULT_TIMEOUT)
def test_source_and_orders(self):
"""verify that UpDownSource is having the correct
behavior and that BuySellAlgorithm places the buy/sell