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 quimb version checking #3378

Merged
merged 5 commits into from
Oct 1, 2020
Merged

Fix quimb version checking #3378

merged 5 commits into from
Oct 1, 2020

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Oct 1, 2020

Making quimb version check more robust.

In some systems the version might not be parseable as (int,int), e.g 0+unknown.
This PR fixes these scenarios.

Fixes #3263.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Oct 1, 2020
Copy link
Collaborator

@dstrain115 dstrain115 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

QUIMB_VERSION = tuple(int(x) for x in quimb.__version__.split('.'))

# coverage: ignore
def _get_quimb_version():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we have a short docstring (specifically what it is returning)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added!

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Oct 1, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Oct 1, 2020
@CirqBot CirqBot merged commit 2c0c481 into quantumlib:master Oct 1, 2020
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Oct 1, 2020
@mpharrigan
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cirq.contrib.quimb fails with quimb 1.2.0
5 participants