forked from M-Labs/nac3
1
0
Fork 0

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 min_artiq import *
from numpy import int32, int64 from numpy import int32, int64
@extern @extern
def output_int(x: int32): def output_int(x: int32):
... ...
class InexistingException(Exception):
pass
@nac3 @nac3
class Demo: class Demo:
core: KernelInvariant[Core] core: KernelInvariant[Core]
@ -20,16 +18,6 @@ class Demo:
self.led0 = TTLOut(self.core, 18) self.led0 = TTLOut(self.core, 18)
self.led1 = TTLOut(self.core, 19) 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 @kernel
def run(self): def run(self):
self.core.reset() self.core.reset()