From c3d0d94f6c9e7bd637fe3c7d4e6673e5e6bba8e7 Mon Sep 17 00:00:00 2001 From: Dean Poulos Date: Thu, 5 Sep 2024 15:20:41 +1000 Subject: [PATCH] Fix syntax for MW channel attributes. --- quam/components/channels.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/quam/components/channels.py b/quam/components/channels.py index f8a2a3b0..99356635 100644 --- a/quam/components/channels.py +++ b/quam/components/channels.py @@ -1596,8 +1596,10 @@ def apply_to_config(self, config: Dict) -> None: super().apply_to_config(config) element_config = config["elements"][self.name] - element_config["MWInput"] = self.opx_output.port_tuple - element_config["upconverter"] = self.upconverter + element_config["MWInput"] = { + "port": self.opx_output.port_tuple, + "upconverter": self.upconverter + } @quam_dataclass @@ -1624,7 +1626,9 @@ def apply_to_config(self, config: Dict) -> None: super().apply_to_config(config) element_config = config["elements"][self.name] - element_config["MWOutput"] = self.opx_input.port_tuple + element_config["MWOutput"] = { + "port": self.opx_input.port_tuple + } element_config["smearing"] = self.smearing element_config["time_of_flight"] = self.time_of_flight