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

Use virtual matrix name when loading to prevent duplication.

parent d107b9c4
No related branches found
No related tags found
No related merge requests found
......@@ -309,8 +309,12 @@ class pulselib:
else:
for virtual_gate_set in hardware.virtual_gates:
vgc = virtual_gates_constructor(self)
vgc.load_via_harware(virtual_gate_set)
vgcs = {vgc.name:vgc for vgc in self.virtual_channels}
if virtual_gate_set.name in vgcs:
vgc = vgcs[virtual_gate_set.name]
else:
vgc = virtual_gates_constructor(self, name=virtual_gate_set.name)
vgc.load_via_harware(virtual_gate_set)
# set output ratio's of the channels from the harware file.
......
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