Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into fix/tests-3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Feb 16, 2024
2 parents 24acaa3 + ea7cb38 commit f17b55a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions quam/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ def generate_config_final_actions(qua_config):
Args:
qua_config (dict): The generated qua config.
"""

for controller_cfg in qua_config["controllers"].values():
for analog_output in controller_cfg["analog_outputs"].values():
analog_output.setdefault("offset", 0.0)
for analog_input in controller_cfg["analog_inputs"].values():
analog_input.setdefault("offset", 0.0)
if "analog_outputs" in controller_cfg:
for analog_output in controller_cfg["analog_outputs"].values():
analog_output.setdefault("offset", 0.0)
if "analog_inputs" in controller_cfg:
for analog_input in controller_cfg["analog_inputs"].values():
analog_input.setdefault("offset", 0.0)

0 comments on commit f17b55a

Please sign in to comment.