New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_algorithm with no data source should default to `bundle='quantopian-quandl'` #1374

Closed
ssanderson opened this Issue Aug 4, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@ssanderson
Member

ssanderson commented Aug 4, 2016

We have code that's supposed to be doing this, but it's currently broken:

    non_none_data = valfilter(bool, {
        'data': data is not None,
        'bundle': bundle is not None,
    })
    if not non_none_data:
        # if neither data nor bundle are passed use 'quantopian-quandl'
        bundle = 'quantopian-quandl'

    if len(non_none_data) != 1:
        raise ValueError(
            'must specify one of `data`, `data_portal`, or `bundle`,'
            ' got: %r' % non_none_data,
        )

If hit the if not non_none_data check, we still raise on the next branch.

@richafrank

This comment has been minimized.

Member

richafrank commented Sep 12, 2016

Should be fixed by #1479

@richafrank richafrank closed this Sep 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment