@contextmanager
def temp_pipeline_engine(calendar, sids, random_seed, symbols=None):
 equity_info = make_simple_equity_info(sids=sids, start_date=calendar[0], end_date=calendar[(-1)], symbols=symbols)
 loader = make_seeded_random_loader(random_seed, calendar, sids)
 def get_loader(column):
  return loader
 with tmp_asset_finder(equities=equity_info) as finder:
  (yield SimplePipelineEngine(get_loader, calendar, finder))

@ contextmanager def temp_pipeline_engine ( calendar , sids , random_seed , symbols = None ) : equity_info = make_simple_equity_info ( sids = sids , start_date = calendar [ 0 ] , end_date = calendar [ ( - 1 ) ] , symbols = symbols ) loader = make_seeded_random_loader ( random_seed , calendar , sids ) def get_loader ( column ) : return loader with tmp_asset_finder ( equities = equity_info ) as finder : ( yield SimplePipelineEngine ( get_loader , calendar , finder ) )
a contextmanager that yields a simplepipelineengine holding a reference to an assetfinder generated via tmp_asset_finder .