From 89fecfab505eef55a2014c042d728a7d7fcd1fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 5 Nov 2018 16:16:07 +0000 Subject: [PATCH] urukul,ad9910: print speed metrics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Jördens --- artiq/test/coredevice/test_ad9910.py | 8 ++++++-- artiq/test/coredevice/test_urukul.py | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/artiq/test/coredevice/test_ad9910.py b/artiq/test/coredevice/test_ad9910.py index aeeb22e49..52d1c5be4 100644 --- a/artiq/test/coredevice/test_ad9910.py +++ b/artiq/test/coredevice/test_ad9910.py @@ -147,11 +147,15 @@ class AD9910Test(ExperimentCase): def test_set_speed(self): 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): 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): self.execute(AD9910Exp, "sync_window") diff --git a/artiq/test/coredevice/test_urukul.py b/artiq/test/coredevice/test_urukul.py index a5cb222ef..ef24e9a86 100644 --- a/artiq/test/coredevice/test_urukul.py +++ b/artiq/test/coredevice/test_urukul.py @@ -122,7 +122,9 @@ class UrukulTest(ExperimentCase): def test_switch_speed(self): 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): self.execute(UrukulExp, "switches_readback") @@ -138,7 +140,9 @@ class UrukulTest(ExperimentCase): def test_att_speed(self): 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): self.execute(UrukulExp, "io_update")