forked from M-Labs/artiq
1
0
Fork 0

urukul,ad9910: print speed metrics

Signed-off-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
Robert Jördens 2018-11-05 16:16:07 +00:00
parent 32d538f72b
commit 89fecfab50
2 changed files with 12 additions and 4 deletions

View File

@ -147,11 +147,15 @@ class AD9910Test(ExperimentCase):
def test_set_speed(self): def test_set_speed(self):
self.execute(AD9910Exp, "set_speed") self.execute(AD9910Exp, "set_speed")
self.assertLess(self.dataset_mgr.get("dt"), 70*us) dt = self.dataset_mgr.get("dt")
print(dt)
self.assertLess(dt, 70*us)
def test_set_speed_mu(self): def test_set_speed_mu(self):
self.execute(AD9910Exp, "set_speed_mu") self.execute(AD9910Exp, "set_speed_mu")
self.assertLess(self.dataset_mgr.get("dt"), 10*us) dt = self.dataset_mgr.get("dt")
print(dt)
self.assertLess(dt, 10*us)
def test_sync_window(self): def test_sync_window(self):
self.execute(AD9910Exp, "sync_window") self.execute(AD9910Exp, "sync_window")

View File

@ -122,7 +122,9 @@ class UrukulTest(ExperimentCase):
def test_switch_speed(self): def test_switch_speed(self):
self.execute(UrukulExp, "switch_speed") self.execute(UrukulExp, "switch_speed")
self.assertLess(self.dataset_mgr.get("dt"), 3*us) dt = self.dataset_mgr.get("dt")
print(dt)
self.assertLess(dt, 3*us)
def test_switches_readback(self): def test_switches_readback(self):
self.execute(UrukulExp, "switches_readback") self.execute(UrukulExp, "switches_readback")
@ -138,7 +140,9 @@ class UrukulTest(ExperimentCase):
def test_att_speed(self): def test_att_speed(self):
self.execute(UrukulExp, "att_speed") self.execute(UrukulExp, "att_speed")
self.assertLess(self.dataset_mgr.get("dt"), 3*us) dt = self.dataset_mgr.get("dt")
print(dt)
self.assertLess(dt, 3*us)
def test_io_update(self): def test_io_update(self):
self.execute(UrukulExp, "io_update") self.execute(UrukulExp, "io_update")