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

Block add() on DMM channels #672

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Block add() on DMM channels #672

merged 1 commit into from
Apr 16, 2024

Conversation

HGSilveri
Copy link
Collaborator

  • Blocks Sequence.add() on DMM channels
  • Blocks Sequence.add_dmm_detuning() on non-DMM channels

I think having one unique way of adding Pulses to DMM and non-DMM channels is preferable but let me know if you think otherwise

@HGSilveri HGSilveri requested a review from a-corni April 15, 2024 16:17
Copy link
Collaborator

@a-corni a-corni left a comment

Choose a reason for hiding this comment

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

It is indeed important to enforce that add_dmm_detuning can be only used on a DMM. I have always hesitated in prohibiting the use of add on DMM, but I guess it will be easier to maintain and clearer for users.

Comment on lines +1356 to +1357
if not isinstance(self.declared_channels[dmm_name], DMM):
raise ValueError(f"'{dmm_name}' is not the name of a DMM channel.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Daaamn I had not thought about this

@HGSilveri HGSilveri merged commit 7df66e3 into develop Apr 16, 2024
7 checks passed
@HGSilveri HGSilveri deleted the hs/block-dmm-add branch April 16, 2024 08:29
soufianekaghad98 pushed a commit to soufianekaghad98/Pulser that referenced this pull request Apr 25, 2024
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