Skip to content

Commit

Permalink
hotfix: switch RF_inputs/RF_outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Mar 21, 2024
1 parent da63a14 commit 4039b54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [Unreleased]
### Fixed
- Switched channel `RF_inputs` and `RF_outputs` for Octave


## [0.3.0]
### Added
Expand Down
4 changes: 2 additions & 2 deletions quam/components/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def apply_to_config(self, config: dict):
f"OctaveUpConverter (id={self.frequency_converter_up.id}) without "
"an attached Octave"
)
element_cfg["RF_outputs"] = {
element_cfg["RF_inputs"] = {
"port": (octave.name, self.frequency_converter_up.id)
}
elif str_ref.is_reference(self.frequency_converter_up):
Expand Down Expand Up @@ -697,7 +697,7 @@ def apply_to_config(self, config: dict):
f"OctaveDownConverter (id={self.frequency_converter_down.id}) "
"without an attached Octave"
)
element_cfg["RF_inputs"] = {
element_cfg["RF_outputs"] = {
"port": (octave.name, self.frequency_converter_down.id)
}
elif str_ref.is_reference(self.frequency_converter_down):
Expand Down
2 changes: 1 addition & 1 deletion quam/components/octave.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def apply_to_config(self, config: Dict) -> None:
if self.id in config["octaves"][self.octave.name]["RF_outputs"]:
raise KeyError(
f"Error generating config: "
f'config["octaves"]["{self.octave.name}"]["RF_inputs"] '
f'config["octaves"]["{self.octave.name}"]["RF_outputs"] '
f'already has an entry for OctaveDownConverter with id "{self.id}"'
)

Expand Down

0 comments on commit 4039b54

Please sign in to comment.