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.)
This commit is contained in:
Eddie Hebert
2016-01-25 12:58:43 -05:00
parent 2803802736
commit 930aa1b29b
+1 -1
View File
@@ -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