nac3artiq: remove errors from demo

This commit is contained in:
Sebastien Bourdeauducq 2022-02-22 16:00:37 +08:00
parent 3ad25c8f07
commit bb7c0a2d79
1 changed files with 1 additions and 13 deletions

View File

@ -1,14 +1,12 @@
from min_artiq import *
from numpy import int32, int64
@extern
def output_int(x: int32):
...
class InexistingException(Exception):
pass
@nac3
class Demo:
core: KernelInvariant[Core]
@ -20,16 +18,6 @@ class Demo:
self.led0 = TTLOut(self.core, 18)
self.led1 = TTLOut(self.core, 19)
@kernel
def test(self):
a = (1, True)
a[0]()
@kernel
def test2(self):
a = (1, True)
output_int(int32(a))
@kernel
def run(self):
self.core.reset()