mirror of https://github.com/m-labs/artiq.git
coefficients: fix constant zero
This commit is contained in:
parent
53d5a458a2
commit
467268a06e
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue