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

Updating the execution window hours #28

Merged
merged 3 commits into from
Aug 4, 2020
Merged

Updating the execution window hours #28

merged 3 commits into from
Aug 4, 2020

Conversation

kalhanreddy
Copy link
Contributor

@kalhanreddy kalhanreddy commented Aug 3, 2020

Description of changes:

  1. Updating the windowStartHour, windowEndHour to use actual hours instead of timestamps. Since we mark execution days, it makes more sense to have just the hours instead of timestamps.
  2. Adding the updatedAt to the seviceProperites which tells us when was the last time the calibration data is updated.
    Build Results

Attach results of `tox -e zip-build
build_files.tar.gz

`

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@avawang1
Copy link
Contributor

avawang1 commented Aug 4, 2020

The version should be updated to 0.2.6

... }
>>> DeviceExecutionWindow.parse_raw(json.dumps(input_json))

"""

executionDay: ExecutionDay
windowStartHour: datetime
windowEndHour: datetime
windowStartHour: time
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these be strings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

time can be a string, You can see the examples i added. https://pydantic-docs.helpmanual.io/usage/types/#datetime-types

@@ -114,3 +120,4 @@ class DeviceServiceProperties(BraketSchemaBase):
deviceCost: Optional[DeviceCost]
deviceDocumentation: Optional[DeviceDocumentation]
deviceLocation: Optional[str]
updatedAt: datetime
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these be strings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

datetime can be a string as well, please check the examples i added. https://pydantic-docs.helpmanual.io/usage/types/#datetime-types

@kalhanreddy kalhanreddy merged commit 427b488 into main Aug 4, 2020
@kalhanreddy kalhanreddy deleted the execution branch August 4, 2020 16:25
MattCordoba added a commit that referenced this pull request Mar 31, 2022
Update OQC json schema to match GetDevice API call
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.

2 participants