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

Optional relationals #1292

Merged
merged 4 commits into from
Nov 19, 2015
Merged

Optional relationals #1292

merged 4 commits into from
Nov 19, 2015

Conversation

mtydykov
Copy link
Contributor

Modify Arithmetic classes so that operations with optionals result in an optional type and add associated tests.

@cpcloud cpcloud added this to the 0.9.0 milestone Nov 17, 2015
@llllllllll
Copy link
Member

looks like we need to import pytest

MAINT: fix _dtype property in Not class.

TST: fix tests.

TST: clean up imports.

TST: fix imports
@mtydykov
Copy link
Contributor Author

Yup, sorry. I removed that mistakenly. It's back now.

@llllllllll
Copy link
Member

Can you add a new entry to the whatsnew?

@mtydykov
Copy link
Contributor Author

Sure - which file to I add it to? For the latest version, there's BASE, LOCAL, and REMOTE. I think those were somehow created automatically, and I'm not sure what to do with them.

@llllllllll
Copy link
Member

docs/source/whatsnew/0.9.0.txt

@mtydykov
Copy link
Contributor Author

Done.

DOC: fix whatsnew entry.
def test_relations_are_boolean():
assert Gt(x, y).schema == dshape('bool')
@pytest.mark.parametrize('relation_type', Relational.__subclasses__())
@pytest.mark.parametrize('lhs,rhs', product((x, y, d, e, f), repeat=2))
Copy link
Member

Choose a reason for hiding this comment

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

neat! i didn't realize you could chain these

@cpcloud
Copy link
Member

cpcloud commented Nov 19, 2015

i'm going to resolve the merge conflicts here and merge on passing

@cpcloud cpcloud merged commit 4efd105 into blaze:master Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants