Skip to content
Snippets Groups Projects
Commit 94cd9cf7 authored by Sander Snoo's avatar Sander Snoo
Browse files

Ignore channels defined in hardware class, but not in pulselib

parent ff55a495
No related merge requests found
......@@ -364,7 +364,10 @@ class pulselib:
hardware.awg2dac_ratios.add(list(self.awg_channels.keys()))
for channel, attenuation in hardware.awg2dac_ratios.items():
self.awg_channels[channel].attenuation = attenuation
if channel not in self.awg_channels:
logging.info(f'Channel {channel} defined in hardware, but not in pulselib; skipping channel')
continue
self.awg_channels[channel].attenuation = attenuation
else:
for virtual_gate_set in hardware.virtual_gates:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment