Skip to content

Commit

Permalink
Merge pull request #73 from qua-platform/hotfix/mw_channel_syntax
Browse files Browse the repository at this point in the history
Fix syntax for MW channel attributes.
  • Loading branch information
nulinspiratie authored Sep 5, 2024
2 parents 26dc263 + c3d0d94 commit f5970b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions quam/components/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit f5970b1

Please sign in to comment.