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

21 lines
386 B
Python
Raw Normal View History

2025-01-10 14:09:38 +08:00
from min_artiq import *
from numpy import int32
@nac3
class StrTest:
core: KernelInvariant[Core]
def __init__(self):
self.core = Core()
@kernel
def test_string(self, s: str):
# Just print the string to verify it works
print_int32(int32(42))
def run(self):
self.test_string("hello")
if __name__ == "__main__":
StrTest().run()