From 7b130a2c32a75c6a2622f2a52bde3dde66f6a9fd Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Fri, 7 Jul 2017 11:36:03 +0200 Subject: [PATCH] sawg: confirm smooth(order=3) --- artiq/gateware/test/dsp/test_sawg_fe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/gateware/test/dsp/test_sawg_fe.py b/artiq/gateware/test/dsp/test_sawg_fe.py index 5aa3e1241..a6595e03c 100644 --- a/artiq/gateware/test/dsp/test_sawg_fe.py +++ b/artiq/gateware/test/dsp/test_sawg_fe.py @@ -182,14 +182,14 @@ class SAWGTest(unittest.TestCase): def test_smooth_cubic(self): ch = self.driver.offset - ch.smooth(.1, .2, 13, 3) + ch.smooth(.1, .2, 13*self.t, 3) ch.set(.2) delay(1*self.t) out = self.run_channel(self.rtio_manager.outputs) - out = sum(out, []) + out = out[self.channel.latency + self.channel.u.latency:][:14] if False: import matplotlib.pyplot as plt - plt.plot(out) + plt.plot(sum(out, [])) plt.show() @unittest.skip("needs artiq.sim.time.TimeManager tweak for "