From 4a1fbb7d03c270cce0016e745ef08f43f07ed7a0 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Mon, 19 Nov 2012 11:50:11 -0500 Subject: [PATCH] Removes unused fuzzy_dates method. --- zipline/sources.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/zipline/sources.py b/zipline/sources.py index 245c184c..7d13f1a1 100644 --- a/zipline/sources.py +++ b/zipline/sources.py @@ -73,16 +73,6 @@ def mock_volumes(count, rand=False): return ((i * 50) % 900 + 100 for i in xrange(count)) -def fuzzy_dates(count=500): - """ - Add +-10 seconds to each event from a date_gen. Note that this - still guarantees sorting, since the default on date_gen is minute - separation of events. - """ - for date in date_gen(count=count): - yield date + timedelta(seconds=random.randint(-10, 10)) - - class SpecificEquityTrades(object): """ Yields all events in event_list that match the given sid_filter.