1
0
forked from M-Labs/nac3
nac3/nac3artiq/demo/test_cache.py

21 lines
404 B
Python
Raw Normal View History

2025-01-10 14:09:38 +08:00
from min_artiq import *
from numpy import int32
@nac3
class StringListTest:
2025-01-10 14:09:38 +08:00
core: KernelInvariant[Core]
def __init__(self):
self.core = Core()
@kernel
def test_string_and_list(self, key: str, value: list[int32]):
print_int32(int32(42))
2025-01-10 14:09:38 +08:00
def test_params():
exp = StringListTest()
exp.test_string_and_list("x4", [])
2025-01-10 14:09:38 +08:00
if __name__ == "__main__":
test_params()