Skip to content

Commit

Permalink
Add number of measurements to meta info.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Aug 2, 2016
1 parent b545084 commit 0e9c60b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion QGL/Compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,18 +398,21 @@ def compile_to_hardware(seqs,
files[awgName] = fullFileName

# create meta output
num_measurements = sum(PatternUtils.contains_measurement(e)
for e in flatten(seqs))
if not axis_descriptor:
axis_descriptor = {
'name': 'segment',
'unit': None,
'points': list(range(1, 1+len(seqs)))
'points': list(range(1, 1 + num_measurements))
}
if not cal_descriptor:
# contains a dictionary of states and a list of associated indices
cal_descriptor = {}
meta = {
'instruments': files,
'num_sequences': len(seqs),
'num_measurements': num_measurements,
'axis_descriptor': axis_descriptor,
'cal_descriptor': cal_descriptor
}
Expand Down

0 comments on commit 0e9c60b

Please sign in to comment.