Skip to content

Commit

Permalink
Fix alignment for equal-length pulses
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ristè committed Feb 1, 2019
1 parent 22fe0bd commit f3e9659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QGL/PulseSequencer.py
Expand Up @@ -281,7 +281,7 @@ def flatten_to_pulses(obj):
pulse_list.append(pulse)
if max(pad_lengths) == 0:
# no padding element required
return pulses
return reduce(operator.mul, pulses)
elif mode == 'left':
return reduce(operator.mul,[p + TAPulse('Id', p.channel, max(pulse_lengths) - p.length,0) if p.length < max(pulse_lengths) else p for p in pulse_list])
elif mode == 'right':
Expand Down

0 comments on commit f3e9659

Please sign in to comment.