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 documentation and key error in calibration #2633

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

dstrain115
Copy link
Collaborator

  • Tried to retrieve historical calibration and it was broken.
  • Fixed docs to my understanding and fixed key error.
  • Please verify that this is correct now per the API.

- Tried to retrieve historical calibration and it was broken.
- Fixed docs to my understanding and fixed key error.
- Please verify that this is correct now per the API.
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Dec 10, 2019
@@ -737,15 +737,16 @@ def get_calibration(self, calibration_name: str) -> calibration.Calibration:

Params:
calibration_name: A string of the form
`<processor name>/calibrations/<ms since epoch>`
`projects/<project_id>/processors/<processor name>`
`/calibrations/<ms since epoch>`
Copy link
Collaborator

Choose a reason for hiding this comment

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

The original doc using is correct (except for the timestamp units) but I'm not certain what convention is being used here.
The full resource name for a calibration object is:
projects/<project id>/processors/<processor id>/calibrations/<timestamp in seconds since epoch>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, it looks like you need the whole resource name or else it fails. Good catch on the units.

@dstrain115 dstrain115 merged commit 58d7722 into quantumlib:master Dec 10, 2019
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

3 participants