Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Aug 23, 2024
1 parent 7d7b6f3 commit e632165
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions quam/components/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@


__all__ = [
"Channel",
"DigitalOutputChannel",
"StickyChannelAddon",
"SingleChannel",
Expand Down Expand Up @@ -165,6 +166,7 @@ class StickyChannelAddon(QuamComponent):
digital (bool, optional): If False, the sticky parameters are not applied to
digital outputs. Default is True.
"""

duration: int
enabled: bool = True
analog: bool = True
Expand Down
3 changes: 2 additions & 1 deletion tests/components/channels/test_in_IQ_out_single_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def test_in_single_channel_attr_annotations():
"opx_input_Q",
}
assert set(attr_annotations["optional"]) == {
"sticky",
"operations",
"filter_fir_taps",
"filter_iir_taps",
Expand Down Expand Up @@ -82,7 +83,7 @@ def test_generate_config_ports(qua_config):
},
"analog_outputs": {1: {"delay": 0, "shareable": False}},
}
}
}

assert qua_config["elements"] == {
"in_out_channel": {
Expand Down
1 change: 1 addition & 0 deletions tests/components/channels/test_in_single_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def test_in_single_channel_attr_annotations():
assert set(attr_annotations["required"]) == {"opx_input"}
assert set(attr_annotations["optional"]) == {
"operations",
"sticky",
"id",
"digital_outputs",
"opx_input_offset",
Expand Down
1 change: 1 addition & 0 deletions tests/components/channels/test_in_single_out_IQ_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def test_in_single_channel_attr_annotations():
}
assert set(attr_annotations["optional"]) == {
"operations",
"sticky",
"intermediate_frequency",
"LO_frequency",
"RF_frequency",
Expand Down

0 comments on commit e632165

Please sign in to comment.