quantopian/zipline — pull request #372 by CaptainKanuk (2014-07-16 19:42:08+00:00)
Title: BUG: Put initialization of perf_tracker back in __init__

The initialization of perf_tracker had been moved from __init__
in TradingAlgorithm to _create_generator. This caused perf_tracker
to not be ready when portfolio requested it. portfolio was consequently
not ready for access in init. portfolio can now be accessed in init
again, assuming valid sim_params are passed. Otherwise it will be
available in handle_data().