From 593aaa9880f1471f8e0cfc82aa6c8aa5c96031f6 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 16 Feb 2013 17:29:36 +0000 Subject: [PATCH 1/3] Remove extra space in comment sentence. --- zipline/transforms/returns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/transforms/returns.py b/zipline/transforms/returns.py index e735c51d..e8772439 100644 --- a/zipline/transforms/returns.py +++ b/zipline/transforms/returns.py @@ -45,7 +45,7 @@ class ReturnsFromPriorClose(object): """ Records the last N closing events for a given security as well as the last event for the security. When we get an event for a new day, we - treat the last event seen as the close for the previous day. + treat the last event seen as the close for the previous day. """ def __init__(self, window_length): From b09ab5da996f36dbc320011aa1e9294d91326dc4 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 16 Feb 2013 17:39:18 +0000 Subject: [PATCH 2/3] Added closing parenthesis to comment note. --- zipline/transforms/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py index 7aa60c73..12b59465 100644 --- a/zipline/transforms/utils.py +++ b/zipline/transforms/utils.py @@ -77,7 +77,7 @@ class TransformMeta(type): calling Foo(*args, **kwargs) will return StatefulTransform(Foo, *args, **kwargs) instead of an instance of Foo. (Note that you can still recover an instance of a "raw" Foo by introspecting the - resulting StatefulTransform's 'state' field. + resulting StatefulTransform's 'state' field.) """ def __call__(cls, *args, **kwargs): From d3f1e0ffa95639fb14d8beddb54f3151f52cb4e9 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 16 Feb 2013 17:43:38 +0000 Subject: [PATCH 3/3] Small spelling change. --- zipline/transforms/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py index 12b59465..f45b1a0f 100644 --- a/zipline/transforms/utils.py +++ b/zipline/transforms/utils.py @@ -294,7 +294,7 @@ class BatchTransform(EventWindow): ``` - In you algorithm you would then have to instantiate + In your algorithm you would then have to instantiate this in the initialize() method: ``` self.my_batch_transform = MyBatchTransform()