mirror of https://github.com/m-labs/artiq.git
coredevice: fix seconds_to_mu rounding
This commit is contained in:
parent
016691cee3
commit
aec2168974
|
@ -176,7 +176,7 @@ class Core:
|
||||||
|
|
||||||
:param seconds: time (in seconds) to convert.
|
:param seconds: time (in seconds) to convert.
|
||||||
"""
|
"""
|
||||||
return int64(seconds//self.ref_period)
|
return round64(seconds/self.ref_period)
|
||||||
|
|
||||||
@portable
|
@portable
|
||||||
def mu_to_seconds(self, mu: int64) -> float:
|
def mu_to_seconds(self, mu: int64) -> float:
|
||||||
|
|
Loading…
Reference in New Issue