From f3e96592b7e364dd5053fee2fde43e10238a2de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rist=C3=A8?= Date: Fri, 1 Feb 2019 10:43:42 -0500 Subject: [PATCH] Fix alignment for equal-length pulses --- QGL/PulseSequencer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QGL/PulseSequencer.py b/QGL/PulseSequencer.py index 0d9e78d0..be0c6143 100644 --- a/QGL/PulseSequencer.py +++ b/QGL/PulseSequencer.py @@ -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':