2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

wavesynth/compute_samples: fix list mutation bug

This commit is contained in:
Sebastien Bourdeauducq 2015-04-05 18:41:06 +08:00
parent 9fd4594c53
commit 0bab73eece

View File

@ -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