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 protobuf serialization test issue #3400

Merged
merged 3 commits into from Oct 6, 2020

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Oct 6, 2020

Fix protobuf serialization test issue - as in some environments protobuf might not truncate to 4 bytes the test should cater for approximate equality.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Oct 6, 2020
}
}
assert np.isclose(packed['arg_value']['float_value'],
np.float32(sympy.pi), atol=1e-8)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is 1e-8 too tight? Shouldn't it be 1e-6?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to 1e-7

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Oct 6, 2020
@CirqBot
Copy link
Collaborator

CirqBot commented Oct 6, 2020

Automerge cancelled: A status check is failing.

@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Oct 6, 2020
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Oct 6, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Oct 6, 2020
@CirqBot
Copy link
Collaborator

CirqBot commented Oct 6, 2020

Automerge cancelled: A status check is failing.

@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 6, 2020
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Oct 6, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Oct 6, 2020
@CirqBot CirqBot merged commit 3468b27 into quantumlib:master Oct 6, 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 6, 2020
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.

None yet

4 participants