From bb7c0a2d797ec8856084bc627ae601f858081ac8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 22 Feb 2022 16:00:37 +0800 Subject: [PATCH] nac3artiq: remove errors from demo --- nac3artiq/demo/demo.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/nac3artiq/demo/demo.py b/nac3artiq/demo/demo.py index f1a65029..5a0de8c7 100644 --- a/nac3artiq/demo/demo.py +++ b/nac3artiq/demo/demo.py @@ -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()