mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-08 11:16:58 +08:00
ENH: make BcolzMinuteBarWriter.write take iterable
Updates the BcolzMinuteBarWriter.write api to allow users to pass their data as a stream instead of requiring that they loop over their data externally. This matches the API presented by BcolzDailyBarWriter.
This commit is contained in:
@@ -23,6 +23,7 @@ from nose.tools import timed
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import pytz
|
||||
from six import iteritems
|
||||
from six.moves import range
|
||||
from testfixtures import TempDirectory
|
||||
|
||||
@@ -219,7 +220,7 @@ class FinanceTestCase(WithLogger,
|
||||
env,
|
||||
env.days_in_range(minutes[0], minutes[-1]),
|
||||
tempdir.path,
|
||||
assets
|
||||
iteritems(assets),
|
||||
)
|
||||
|
||||
equity_minute_reader = BcolzMinuteBarReader(tempdir.path)
|
||||
|
||||
Reference in New Issue
Block a user