From 948196d2deedcf6ab21e9c43ef1334880134b051 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Thu, 22 Oct 2015 07:25:01 -0400 Subject: [PATCH] MAINT: Remove unused loader_utils functions. --- zipline/data/loader_utils.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/zipline/data/loader_utils.py b/zipline/data/loader_utils.py index 014a95cb..b21c144c 100644 --- a/zipline/data/loader_utils.py +++ b/zipline/data/loader_utils.py @@ -40,17 +40,6 @@ def get_utc_from_exchange_time(naive): return utc_dt -def get_exchange_time_from_utc(utc_dt): - """ - Takes in result from exchange time. - """ - dt = utc_dt.replace(tzinfo=pytz.utc) - local = pytz.timezone('US/Eastern') - dt = dt.astimezone(local) - - return dt - - def guarded_conversion(conversion, str_val): """ Returns the result of applying the @conversion to @str_val @@ -60,16 +49,6 @@ def guarded_conversion(conversion, str_val): return conversion(str_val) -def safe_int(str_val): - """ - casts the @str_val to a float to handle the occassional - decimal point in int fields from data providers. - """ - f = float(str_val) - i = int(f) - return i - - def date_conversion(date_str, date_pattern='%m/%d/%Y', to_utc=True): """ Convert date strings from TickData (or other source) into epoch values.