-
Notifications
You must be signed in to change notification settings - Fork 347
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
Add deprecated property to DefFrame for CHANNEL-DELAY attribute #1729
Conversation
@MarquessV Given that I've written this, are you willing to merge it? Or do you view it as a step in the wrong directions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! I realized that this attribute got added after the work for v4 started, but still landed in v3, so this is the right thing to do.
test/unit/test_quilbase.py
Outdated
# center_frequency, | ||
# channel_delay]: | ||
# if arg is not None | ||
# ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need these comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed them!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If @MarquessV is happy with it I'm happy with it
test/unit/test_quilbase.py
Outdated
channel_delay: Optional[float], | ||
) -> DefFrame: | ||
optional_args = {k: v | ||
for k, v in locals().items() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is probably more python magic than we want or need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disenchanted it.
Description
v4 has added deprecated attribute properties for all the standard defframe attributes, except for CHANNEL-DELAY. I have a bunch of call sites in my v3 codebase that use this attribute and engineers like to benefit from autocompletion in their IDE when accessing channel delays. So here is a PR that adds the missing property.
Checklist
master
branch