From 4039b54f44d6c3f6632c53a0b8a9e049ec669e2e Mon Sep 17 00:00:00 2001 From: Serwan Asaad Date: Thu, 21 Mar 2024 18:43:20 +0100 Subject: [PATCH] hotfix: switch RF_inputs/RF_outputs --- CHANGELOG.md | 4 ++++ quam/components/channels.py | 4 ++-- quam/components/octave.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3089dd70..dbf8a4ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [Unreleased] +### Fixed +- Switched channel `RF_inputs` and `RF_outputs` for Octave + ## [0.3.0] ### Added diff --git a/quam/components/channels.py b/quam/components/channels.py index 654d658a..f139ee72 100644 --- a/quam/components/channels.py +++ b/quam/components/channels.py @@ -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): @@ -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): diff --git a/quam/components/octave.py b/quam/components/octave.py index 4b2debdf..6ad0266a 100644 --- a/quam/components/octave.py +++ b/quam/components/octave.py @@ -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}"' )