forked from M-Labs/artiq
sawg: style
This commit is contained in:
parent
4f813c4977
commit
d8b5eac856
|
@ -89,10 +89,10 @@ class Spline:
|
|||
coeff64[i] = ci
|
||||
# artiq.wavesynth.coefficients.discrete_compensate:
|
||||
if i == 2:
|
||||
coeff64[1] += ci >> (self.time_width + 1)
|
||||
coeff64[1] += ci >> self.time_width + 1
|
||||
elif i == 3:
|
||||
coeff64[2] += ci >> self.time_width
|
||||
coeff64[1] += (ci // 3) >> (2*self.time_width + 1)
|
||||
coeff64[1] += ci // 6 >> 2*self.time_width
|
||||
|
||||
@kernel
|
||||
def set_coeff(self, value):
|
||||
|
|
|
@ -88,8 +88,7 @@ class SplineParallelDDS(SplineParallelDUC):
|
|||
a = Spline(order=orders.a, width=widths.a)
|
||||
self.a = a.tri(widths.t)
|
||||
self.submodules += a
|
||||
super().__init__(widths._replace(a=len(self.a.a0)),
|
||||
orders, **kwargs)
|
||||
super().__init__(widths._replace(a=len(self.a.a0)), orders, **kwargs)
|
||||
|
||||
###
|
||||
|
||||
|
|
Loading…
Reference in New Issue