From 930aa1b29bacfedc36d1570f5d060c7f54a2b5b5 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Mon, 25 Jan 2016 12:58:43 -0500 Subject: [PATCH] MAINT: Use metadata method for reader init. Use the preexisting metadata method when instantiating the minute bar reader. An internal sublcass uses the `_get_metadata` method to setup data for directories that have not used the new writer/reader interface. (i.e. allows for reader creation when the metadata.json file does not exist.) --- zipline/data/minute_bars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/data/minute_bars.py b/zipline/data/minute_bars.py index 52f95b85..f1f18603 100644 --- a/zipline/data/minute_bars.py +++ b/zipline/data/minute_bars.py @@ -454,7 +454,7 @@ class BcolzMinuteBarReader(object): """ self._rootdir = rootdir - metadata = BcolzMinuteBarMetadata.read(self._rootdir) + metadata = self._get_metadata() self._first_trading_day = metadata.first_trading_day self._minute_index = metadata.minute_index