Skip to content
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

Asset KeyError #959

Merged
merged 3 commits into from
Jan 21, 2016
Merged

Asset KeyError #959

merged 3 commits into from
Jan 21, 2016

Conversation

richafrank
Copy link
Member

Enable comparison of an Asset to an int64 on 32-bit python

by supporting any Integral. We use a number of mappings keyed by
int64, which otherwise raise KeyErrors for Assets.

Also ensures algo.current_sids() returns a list of Assets, instead of identifiers.

For #650 and #926

@@ -212,6 +212,7 @@ def test_asset_comparisons(self):
self.assertEqual(s_23, s_23)
self.assertEqual(s_23, 23)
self.assertEqual(23, s_23)
self.assertEqual(int64(23), s_23)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's also check np.int32 to be safe

We use a number of mappings keyed by int64, which otherwise raised
KeyErrors for Assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants