From 0bab73eece7c7157461b7ebaf8a20e7d98cc78fb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 5 Apr 2015 18:41:06 +0800 Subject: [PATCH] wavesynth/compute_samples: fix list mutation bug --- artiq/wavesynth/compute_samples.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/wavesynth/compute_samples.py b/artiq/wavesynth/compute_samples.py index debe393a6..76841c35e 100644 --- a/artiq/wavesynth/compute_samples.py +++ b/artiq/wavesynth/compute_samples.py @@ -26,8 +26,9 @@ class SplinePhase: def set_coefficients(self, c): self.c0 = c[0] - self.c[1:] = c[1:] - discrete_compensate(self.c[1:]) + c1p = c[1:] + discrete_compensate(c1p) + self.c[1:] = c1p def clear(self): self.c[0] = 0.0