From 6ba74ed9f64ad3d66f2537f26a98d205957381d8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 9 Oct 2021 15:51:47 +0800 Subject: [PATCH] nac3artiq: allow creating drivers on device --- nac3artiq/min_artiq.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nac3artiq/min_artiq.py b/nac3artiq/min_artiq.py index 2bb78eed..da5f4b5a 100644 --- a/nac3artiq/min_artiq.py +++ b/nac3artiq/min_artiq.py @@ -82,6 +82,10 @@ def rtio_input_data(channel: int32) -> int32: @kernel class Core: + @portable + def __init__(self): + pass + def run(self, method, *args, **kwargs): global allow_module_registration if allow_module_registration: @@ -106,6 +110,7 @@ class TTLOut: channel: int32 target_o: int32 + @portable def __init__(self, channel: int32): self.channel = channel self.target_o = channel << 8