mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 19:04:02 +08:00
language/core: update kernel ro types
This commit is contained in:
parent
71825f5ae0
commit
9189ad5fab
@ -1,4 +1,5 @@
|
||||
from collections import namedtuple
|
||||
from fractions import Fraction
|
||||
|
||||
from artiq.language import units
|
||||
|
||||
@ -34,7 +35,7 @@ def round64(x):
|
||||
return int64(round(x))
|
||||
|
||||
def _make_kernel_ro(value):
|
||||
return isinstance(value, (int, float, str, units.Quantity))
|
||||
return isinstance(value, (bool, int, int64, float, Fraction, units.Quantity))
|
||||
|
||||
class AutoContext:
|
||||
parameters = ""
|
||||
|
Loading…
Reference in New Issue
Block a user