From 5ffa6e05224f7f4d748c1440de407a268fc8b49e Mon Sep 17 00:00:00 2001 From: spaqin Date: Tue, 13 Aug 2024 09:28:02 +0200 Subject: [PATCH] examples: fix precompile example for NAC3 --- .../kc705_nist_clock/repository/precompile.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/artiq/examples/kc705_nist_clock/repository/precompile.py b/artiq/examples/kc705_nist_clock/repository/precompile.py index 2ac981d25..4b264c672 100644 --- a/artiq/examples/kc705_nist_clock/repository/precompile.py +++ b/artiq/examples/kc705_nist_clock/repository/precompile.py @@ -1,20 +1,21 @@ from artiq.experiment import * -# NAC3TODO - +@nac3 class Precompile(EnvExperiment): + hello_str: Kernel[str] + def build(self): self.setattr_device("core") self.hello_str = "hello ARTIQ" def prepare(self): - self.precompiled = self.core.precompile(self.hello, "world") + self.precompiled = self.core.precompile(self.hello, "world") @kernel - def hello(self, arg): - print(self.hello_str, arg) - self.hello_str = "nowriteback" + def hello(self, arg: str): + print_rpc((self.hello_str, arg)) + self.hello_str = "nowriteback" def run(self): self.precompiled()