mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-09 15:02:37 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user