2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-07 17:43:34 +08:00

coredevice: fix seconds_to_mu rounding

This commit is contained in:
Sébastien Bourdeauducq 2024-08-30 13:47:48 +08:00
parent 016691cee3
commit aec2168974

View File

@ -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: