From aec216897411920727cf4919527323b92ec2c5b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Fri, 30 Aug 2024 13:47:48 +0800 Subject: [PATCH] coredevice: fix seconds_to_mu rounding --- artiq/coredevice/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/core.py b/artiq/coredevice/core.py index 92f5f5739..096fbbd16 100644 --- a/artiq/coredevice/core.py +++ b/artiq/coredevice/core.py @@ -176,7 +176,7 @@ class Core: :param seconds: time (in seconds) to convert. """ - return int64(seconds//self.ref_period) + return round64(seconds/self.ref_period) @portable def mu_to_seconds(self, mu: int64) -> float: