Skip to content

Commit

Permalink
minor fix to channels
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Jul 1, 2024
1 parent 823a788 commit 7c7c05a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quam/components/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ def apply_to_config(self, config: dict) -> None:

if len(self.opx_output) == 2:
digital_output_port = OPXPlusDigitalOutputPort(
port=self.opx_output, shareable=self.shareable, inverted=self.inverted
*self.opx_output, shareable=self.shareable, inverted=self.inverted
)
else:
digital_output_port = FEMDigitalOutputPort(
port=self.opx_output, shareable=self.shareable, inverted=self.inverted
*self.opx_output, shareable=self.shareable, inverted=self.inverted
)
digital_output_port.apply_to_config(config)

Expand Down Expand Up @@ -1011,10 +1011,10 @@ def apply_to_config(self, config: dict):
if isinstance(opx_output, LFAnalogOutputPort):
opx_port = opx_output
elif len(opx_output) == 2:
opx_port = OPXPlusAnalogOutputPort(port=opx_output, offset=offset)
opx_port = OPXPlusAnalogOutputPort(*opx_output, offset=offset)
opx_port.apply_to_config(config)
else:
opx_port = LFFEMAnalogOutputPort(port=opx_output, offset=offset)
opx_port = LFFEMAnalogOutputPort(*opx_output, offset=offset)
opx_port.apply_to_config(config)


Expand Down

0 comments on commit 7c7c05a

Please sign in to comment.