Skip to content

Commit

Permalink
DEP: Remove unecessary calls to write_data
Browse files Browse the repository at this point in the history
  • Loading branch information
StewartDouglas authored and jfkirk committed Sep 10, 2015
1 parent 1c512c5 commit 3af8b6d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions zipline/sources/simulated.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ def __init__(self, start_prices=None, freq='minute', start=None,
self.sd = sd

self.sids = self.start_prices.keys()
TradingEnvironment.instance().write_data(
equities_identifiers=self.sids
)

self.open_and_closes = \
calendar.open_and_closes[self.start:self.end]
Expand Down
2 changes: 0 additions & 2 deletions zipline/sources/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def __init__(self, env=None, *args, **kwargs):
'sids',
set(event.sid for event in self.event_list)
)
env.write_data(equities_identifiers=self.identifiers)
assets_by_identifier = {}
for identifier in self.identifiers:
assets_by_identifier[identifier] = env.asset_finder.\
Expand All @@ -160,7 +159,6 @@ def __init__(self, env=None, *args, **kwargs):
self.concurrent = kwargs.get('concurrent', False)

self.identifiers = kwargs.get('sids', [1, 2])
env.write_data(equities_identifiers=self.identifiers)
assets_by_identifier = {}
for identifier in self.identifiers:
assets_by_identifier[identifier] = env.asset_finder.\
Expand Down
3 changes: 0 additions & 3 deletions zipline/utils/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def create_trade_history(sid, prices, amounts, interval, sim_params,
source_id="test_factory"):
trades = []
current = sim_params.first_open
trading.environment.write_data(equities_identifiers=[sid])

oneday = timedelta(days=1)
use_midnight = interval >= oneday
Expand Down Expand Up @@ -311,8 +310,6 @@ def create_test_df_source(sim_params=None, bars='daily'):

df = pd.DataFrame(x, index=index, columns=[0])

trading.environment.write_data(equities_identifiers=[0])

return DataFrameSource(df), df


Expand Down

0 comments on commit 3af8b6d

Please sign in to comment.