From 467268a06e296324038f8fecd717f090721bba73 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 23 Feb 2016 17:56:38 +0100 Subject: [PATCH] coefficients: fix constant zero --- artiq/wavesynth/coefficients.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/wavesynth/coefficients.py b/artiq/wavesynth/coefficients.py index ca321fca1..3c41990ed 100644 --- a/artiq/wavesynth/coefficients.py +++ b/artiq/wavesynth/coefficients.py @@ -73,6 +73,8 @@ def build_segment(durations, coefficients, target="bias", if cdj or abs(yijk) or not compress: cdj.append(float(yijk)) cdj.reverse() + if not cdj: + cdj.append(float(yij[0])) cd.append({target: {variable: cdj}}) yield {"duration": int(dxi), "channel_data": cd}