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

fix the picker to not assert on single-item datasets #2

Merged
1 commit merged into from Feb 8, 2011

Conversation

bks
Copy link
Contributor

@bks bks commented Feb 8, 2011

Single-item datasets don't have enough items to establish an ordering, so pickable.py:_chooseOrderingSign() was asserting. Fix that.

We got assertion failures in _chooseOrderingSign() for
data sets with only one point, because of course there is
neither a left-er or right-er point for it. Special-case
length-1 data sets, since they have nothing to establish
an ordering on.
@jeremysanders
Copy link
Collaborator

Thanks - I saw this on the "spectrum.vsz" example but hadn't had time to fix it.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants