Skip to content

Commit

Permalink
Skip receiver measurement meta if no receiver specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Nov 17, 2016
1 parent 33971e6 commit 510f420
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions QGL/Compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,10 @@ def compile_to_hardware(seqs,
'points': list(range(1, 1 + num_measurements)),
'partition': 1
}]
receiver_measurements = {wire.receiverChan.label: n
for wire, n in wire_measurements.items()}
receiver_measurements = {}
for wire, n in wire_measurements.items():
if wire.receiverChan:
receiver_measurements[wire.receiverChan.label] = n
meta = {
'instruments': files,
'num_sequences': len(seqs),
Expand Down

0 comments on commit 510f420

Please sign in to comment.