forked from M-Labs/artiq
1
0
Fork 0

sawg: confirm smooth(order=3)

This commit is contained in:
Robert Jördens 2017-07-07 11:36:03 +02:00
parent 3bc0e32dc0
commit 7b130a2c32
1 changed files with 3 additions and 3 deletions

View File

@ -182,14 +182,14 @@ class SAWGTest(unittest.TestCase):
def test_smooth_cubic(self): def test_smooth_cubic(self):
ch = self.driver.offset ch = self.driver.offset
ch.smooth(.1, .2, 13, 3) ch.smooth(.1, .2, 13*self.t, 3)
ch.set(.2) ch.set(.2)
delay(1*self.t) delay(1*self.t)
out = self.run_channel(self.rtio_manager.outputs) out = self.run_channel(self.rtio_manager.outputs)
out = sum(out, []) out = out[self.channel.latency + self.channel.u.latency:][:14]
if False: if False:
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
plt.plot(out) plt.plot(sum(out, []))
plt.show() plt.show()
@unittest.skip("needs artiq.sim.time.TimeManager tweak for " @unittest.skip("needs artiq.sim.time.TimeManager tweak for "