BUG: Need to be able to append to minute ctable.

This commit is contained in:
Eddie Hebert
2016-01-21 11:10:07 -05:00
parent 85be1b0a40
commit 3a8be8c624
+1 -1
View File
@@ -331,7 +331,7 @@ class BcolzMinuteBarWriter(object):
sidpath = self.sidpath(sid)
if not os.path.exists(sidpath):
return self._init_ctable(sidpath)
return bcolz.ctable(rootdir=sidpath, mode='r')
return bcolz.ctable(rootdir=sidpath, mode='a')
def _zerofill(self, table, numdays):
num_to_prepend = numdays * self._minutes_per_day