Skip to content

Commit 0bab73e

Browse files
committedApr 5, 2015
wavesynth/compute_samples: fix list mutation bug
1 parent 9fd4594 commit 0bab73e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎artiq/wavesynth/compute_samples.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ def __init__(self):
2626

2727
def set_coefficients(self, c):
2828
self.c0 = c[0]
29-
self.c[1:] = c[1:]
30-
discrete_compensate(self.c[1:])
29+
c1p = c[1:]
30+
discrete_compensate(c1p)
31+
self.c[1:] = c1p
3132

3233
def clear(self):
3334
self.c[0] = 0.0

0 commit comments

Comments
 (0)
Please sign in to comment.