forked from M-Labs/artiq
1
0
Fork 0

test/sawg: patch spline

This commit is contained in:
Robert Jördens 2016-12-08 15:49:23 +01:00
parent 3eef6229cc
commit efc95043c4
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import unittest
import migen as mg import migen as mg
from numpy import int32 from numpy import int32
from artiq.coredevice import sawg from artiq.coredevice import sawg, spline
from artiq.language import (at_mu, now_mu, delay, from artiq.language import (at_mu, now_mu, delay,
core as core_language) core as core_language)
from artiq.gateware.rtio.phy.sawg import Channel from artiq.gateware.rtio.phy.sawg import Channel
@ -36,7 +36,7 @@ class SAWGTest(unittest.TestCase):
def setUp(self): def setUp(self):
core_language.set_time_manager(sim_time.Manager()) core_language.set_time_manager(sim_time.Manager())
self.rtio_manager = RTIOManager() self.rtio_manager = RTIOManager()
self.rtio_manager.patch(sawg) self.rtio_manager.patch(spline)
self.core = sim_devices.Core({}) self.core = sim_devices.Core({})
self.core.coarse_ref_period = 6.66666 self.core.coarse_ref_period = 6.66666
self.t = self.core.coarse_ref_period self.t = self.core.coarse_ref_period
@ -46,7 +46,7 @@ class SAWGTest(unittest.TestCase):
parallelism=self.channel.parallelism) parallelism=self.channel.parallelism)
def tearDown(self): def tearDown(self):
self.rtio_manager.unpatch(sawg) self.rtio_manager.unpatch(spline)
def test_instantiate(self): def test_instantiate(self):
pass pass