mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 18:13:58 +08:00
ENH: Adds table_len method to BcolzMinuteBarReader (#1436)
To get the length of the underlying table for a given sid.
This commit is contained in:
@@ -1008,6 +1008,10 @@ class BcolzMinuteBarReader(MinuteBarReader):
|
||||
|
||||
return carray
|
||||
|
||||
def table_len(self, sid):
|
||||
"""Returns the length of the underlying table for this sid."""
|
||||
return len(self._open_minute_file('close', sid))
|
||||
|
||||
def get_sid_attr(self, sid, name):
|
||||
sid_subdir = _sid_subdir_path(sid)
|
||||
sid_path = os.path.join(self._rootdir, sid_subdir)
|
||||
|
||||
Reference in New Issue
Block a user