From 0158de5ac9fd9e5263142a736179d5e76bd23a30 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Oct 2014 17:20:12 +0800 Subject: [PATCH] devices/corecom_dummy: fix ref_period --- artiq/devices/corecom_dummy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/devices/corecom_dummy.py b/artiq/devices/corecom_dummy.py index 306865da6..0c91b870a 100644 --- a/artiq/devices/corecom_dummy.py +++ b/artiq/devices/corecom_dummy.py @@ -1,7 +1,7 @@ from operator import itemgetter +from fractions import Fraction from artiq.devices.runtime import LinkInterface -from artiq.language.units import ns class _RuntimeEnvironment(LinkInterface): @@ -14,7 +14,7 @@ class _RuntimeEnvironment(LinkInterface): class CoreCom: def get_runtime_env(self): - return _RuntimeEnvironment(10*ns) + return _RuntimeEnvironment(Fraction(1, 1000000000)) def load(self, kcode): print("================")