From 2775cc7ca4a44ab12693874992445682fa2d90dc Mon Sep 17 00:00:00 2001 From: Andrew Liang Date: Mon, 11 Apr 2016 12:24:22 -0400 Subject: [PATCH] FIX: Remove support for passing in sid int in place of Asset --- zipline/data/data_portal.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/zipline/data/data_portal.py b/zipline/data/data_portal.py index d4bc1e18..59337765 100644 --- a/zipline/data/data_portal.py +++ b/zipline/data/data_portal.py @@ -714,9 +714,6 @@ class DataPortal(object): if field not in BASE_FIELDS: raise KeyError("Invalid column: " + str(field)) - if isinstance(asset, int): - asset = self.env.asset_finder.retrieve_asset(asset) - if dt < asset.start_date or \ (data_frequency == "daily" and dt > asset.end_date) or \ (data_frequency == "minute" and @@ -847,8 +844,6 @@ class DataPortal(object): ------- The value of the desired field at the desired time. """ - if isinstance(asset, int): - asset = self._asset_finder.retrieve_asset(asset) if spot_value is None: spot_value = self.get_spot_value(asset, field, dt, data_frequency)