mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 05:50:19 +08:00
BUG: ValueError for 'bars' masked by UnboundLocalError
for 'freq'
This commit is contained in:
@@ -272,7 +272,7 @@ def create_test_df_source(sim_params=None, bars='daily'):
|
||||
elif bars == 'minute':
|
||||
freq = pd.datetools.Minute()
|
||||
else:
|
||||
raise ValueError('%s bars not understood.' % freq)
|
||||
raise ValueError('%s bars not understood.' % bars)
|
||||
|
||||
if sim_params:
|
||||
index = sim_params.trading_days
|
||||
|
||||
Reference in New Issue
Block a user