mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 14:37:54 +08:00
BUG: run_algorithm with no data source should default
to 'quantopian-quandl' bundle
This commit is contained in:
@@ -329,13 +329,13 @@ def run_algorithm(start,
|
||||
# if neither data nor bundle are passed use 'quantopian-quandl'
|
||||
bundle = 'quantopian-quandl'
|
||||
|
||||
if len(non_none_data) != 1:
|
||||
elif len(non_none_data) != 1:
|
||||
raise ValueError(
|
||||
'must specify one of `data`, `data_portal`, or `bundle`,'
|
||||
' got: %r' % non_none_data,
|
||||
)
|
||||
|
||||
if 'bundle' not in non_none_data and bundle_timestamp is not None:
|
||||
elif 'bundle' not in non_none_data and bundle_timestamp is not None:
|
||||
raise ValueError(
|
||||
'cannot specify `bundle_timestamp` without passing `bundle`',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user